fix valgrind issue with lte-bearer test
This commit is contained in:
@@ -99,6 +99,7 @@ LteMacQueue::LteMacQueue (uint32_t maxSize)
|
||||
|
||||
LteMacQueue::~LteMacQueue (void)
|
||||
{
|
||||
m_queue.clear ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -102,7 +102,10 @@ Ns3LteBearerTestCase::DoRun (void)
|
||||
return true; // the queue should be empty
|
||||
}
|
||||
|
||||
|
||||
// Free memory; handle reference cycle that bearer has with RlcEntity
|
||||
bearer->Dispose ();
|
||||
bearer = 0;
|
||||
Simulator::Destroy ();
|
||||
|
||||
return (testResult);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user