fix memory leak
This commit is contained in:
@@ -1191,6 +1191,7 @@ GlobalRouteManagerImpl::SPFVertexAddParent (SPFVertex* v)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
#include "ns3/test.h"
|
||||
#include "ns3/simulator.h"
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
@@ -1392,6 +1393,9 @@ GlobalRouteManagerImplTest::RunTests (void)
|
||||
// because the NodeList is empty
|
||||
srm->DebugSPFCalculate (lsa0->GetLinkStateId ()); // node n0
|
||||
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
|
||||
// This delete clears the srm, which deletes the LSDB, which clears
|
||||
// all of the LSAs, which each destroys the attached LinkRecords.
|
||||
delete srm;
|
||||
|
||||
Reference in New Issue
Block a user