Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not access esi segment_id from segment being erased
boost::ptr_map::erase() API takes key argument by reference. Hence, by passing segment->esi() as a reference to erase(), this key can be still accessed within the boost container code while the segment that contains the key gets destroyed Also fix a minor minor leak in bgp_evpn_aliasing_test.cc using scoped_ptr. Change-Id: I2045699e103546a5fe3aef679b45c2a373326475 Closes-Bug: 1735558
- Loading branch information
1 parent
a2a861a
commit 516bef0
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters