fix memory leak
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Mon, 06 Aug 2007 10:09:18 +0200
changeset 1200 ae6244482a59
parent 1199 d9caeae5943c
child 1201 9bb4f158c60e
fix memory leak
src/routing/global-routing/global-route-manager-impl.cc
--- a/src/routing/global-routing/global-route-manager-impl.cc	Mon Aug 06 10:06:25 2007 +0200
+++ b/src/routing/global-routing/global-route-manager-impl.cc	Mon Aug 06 10:09:18 2007 +0200
@@ -1191,6 +1191,7 @@
 // ---------------------------------------------------------------------------
 
 #include "ns3/test.h"
+#include "ns3/simulator.h"
 
 namespace ns3 {
 
@@ -1392,6 +1393,9 @@
   // 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;