Memory leak in BgpTable::CreateAsPath4Byte()
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
High
|
Ananth Suryanarayana |
Bug Description
diff --git a/src/bgp/
index 302ceda..d776e74 100644
--- a/src/bgp/
+++ b/src/bgp/
@@ -433,7 +433,7 @@ void BgpTable:
// Create aspath_4byte by merging as_path and as4_path
void BgpTable:
- AsPath4ByteSpec *aspath_4byte = new AsPath4ByteSpec;
+ boost::
if (attr->as_path()) {
const AsPathSpec &as_path = attr->as_
if (attr->as4_path()) {
@@ -468,9 +468,9 @@ void BgpTable:
}
}
}
- AsPath4ByteSpec *as_path_ptr = aspath_
- attr->set_
- delete as_path_ptr;
+ boost::
+ aspath_
+ attr->set_
}
bool BgpTable:
Review in progress for https:/ /review. opencontrail. org/47458
Submitter: Ananth Suryanarayana (<email address hidden>)