==15241== ==15241== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 101 from 1) ==15241== malloc/free: in use at exit: 13,200 bytes in 140 blocks. ==15241== malloc/free: 562,919 allocs, 562,779 frees, 24,856,243 bytes allocated. ==15241== For counts of detected errors, rerun with: -v ==15241== searching for pointers to 140 not-freed blocks. ==15241== checked 785,268 bytes. ==15241== ==15241== 5,200 (1,200 direct, 4,000 indirect) bytes in 20 blocks are definitely lost in loss record 1 of 3 ==15241== at 0x402377E: operator new(unsigned) (vg_replace_malloc.c:224) ==15241== by 0x4E03AA7: __gnu_cxx::new_allocator > >::allocate(unsigned, void const*) (new_allocator.h:92) ==15241== by 0x4E03AE1: std::_Vector_base >, std::allocator > > >::_M_allocate(unsigned) (stl_vector.h:144) ==15241== by 0x4E04693: std::vector >* std::vector >, std::allocator > > >::_M_allocate_and_copy<__gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > > >(unsigned, __gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > >, __gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > >) (stl_vector.h:904) ==15241== by 0x4E04B74: std::vector >, std::allocator > > >::operator=(std::vector >, std::allocator > > > const&) (vector.tcc:152) ==15241== by 0x4DFFBE2: ns3::MinstrelWifiManager::CheckInit(ns3::MinstrelWifiRemoteStation*) (minstrel-wifi-manager.cc:241) ==15241== by 0x4DFFD4A: ns3::MinstrelWifiManager::DoGetDataMode(ns3::WifiRemoteStation*, unsigned) (minstrel-wifi-manager.cc:468) ==15241== by 0x4DB23BC: ns3::WifiRemoteStationManager::GetDataMode(ns3::Mac48Address, ns3::WifiMacHeader const*, ns3::Ptr, unsigned) (wifi-remote-station-manager.cc:361) ==15241== by 0x4D6D507: ns3::MacLow::GetDataTxMode(ns3::Ptr, ns3::WifiMacHeader const*) const (mac-low.cc:963) ==15241== by 0x4D6D5D4: ns3::MacLow::StartDataTxTimers() (mac-low.cc:1265) ==15241== by 0x4D71783: ns3::MacLow::SendDataPacket() (mac-low.cc:1319) ==15241== by 0x4D760A4: ns3::MacLow::StartTransmission(ns3::Ptr, ns3::WifiMacHeader const*, ns3::MacLowTransmissionParameters, ns3::MacLowTransmissionListener*) (mac-low.cc:596) ==15241== ==15241== ==15241== 4,000 bytes in 100 blocks are indirectly lost in loss record 2 of 3 ==15241== at 0x402377E: operator new(unsigned) (vg_replace_malloc.c:224) ==15241== by 0x4897833: __gnu_cxx::new_allocator::allocate(unsigned, void const*) (new_allocator.h:92) ==15241== by 0x489786D: std::_Vector_base >::_M_allocate(unsigned) (stl_vector.h:144) ==15241== by 0x4897DE7: std::_Vector_base >::_Vector_base(unsigned, std::allocator const&) (stl_vector.h:117) ==15241== by 0x4897E76: std::vector >::vector(std::vector > const&) (stl_vector.h:248) ==15241== by 0x4E0456D: std::vector >* std::__uninitialized_copy::uninitialized_copy<__gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > >, std::vector >*>(__gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > >, __gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > >, std::vector >*) (stl_uninitialized.h:79) ==15241== by 0x4E04636: std::vector >* std::uninitialized_copy<__gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > >, std::vector >*>(__gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > >, __gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > >, std::vector >*) (stl_uninitialized.h:122) ==15241== by 0x4E04667: std::vector >* std::__uninitialized_copy_a<__gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > >, std::vector >*, std::vector > >(__gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > >, __gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > >, std::vector >*, std::allocator > >&) (stl_uninitialized.h:262) ==15241== by 0x4E046BE: std::vector >* std::vector >, std::allocator > > >::_M_allocate_and_copy<__gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > > >(unsigned, __gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > >, __gnu_cxx::__normal_iterator > const*, std::vector >, std::allocator > > > >) (stl_vector.h:907) ==15241== by 0x4E04B74: std::vector >, std::allocator > > >::operator=(std::vector >, std::allocator > > > const&) (vector.tcc:152) ==15241== by 0x4DFFBE2: ns3::MinstrelWifiManager::CheckInit(ns3::MinstrelWifiRemoteStation*) (minstrel-wifi-manager.cc:241) ==15241== by 0x4DFFD4A: ns3::MinstrelWifiManager::DoGetDataMode(ns3::WifiRemoteStation*, unsigned) (minstrel-wifi-manager.cc:468) ==15241== ==15241== ==15241== 8,000 bytes in 20 blocks are definitely lost in loss record 3 of 3 ==15241== at 0x402377E: operator new(unsigned) (vg_replace_malloc.c:224) ==15241== by 0x4E0397E: __gnu_cxx::new_allocator::allocate(unsigned, void const*) (new_allocator.h:92) ==15241== by 0x4E039B9: std::_Vector_base >::_M_allocate(unsigned) (stl_vector.h:144) ==15241== by 0x4E03E5F: ns3::RateInfo* std::vector >::_M_allocate_and_copy<__gnu_cxx::__normal_iterator > > >(unsigned, __gnu_cxx::__normal_iterator > >, __gnu_cxx::__normal_iterator > >) (stl_vector.h:904) ==15241== by 0x4E03FE8: std::vector >::operator=(std::vector > const&) (vector.tcc:152) ==15241== by 0x4DFFAC7: ns3::MinstrelWifiManager::CheckInit(ns3::MinstrelWifiRemoteStation*) (minstrel-wifi-manager.cc:240) ==15241== by 0x4DFFD4A: ns3::MinstrelWifiManager::DoGetDataMode(ns3::WifiRemoteStation*, unsigned) (minstrel-wifi-manager.cc:468) ==15241== by 0x4DB23BC: ns3::WifiRemoteStationManager::GetDataMode(ns3::Mac48Address, ns3::WifiMacHeader const*, ns3::Ptr, unsigned) (wifi-remote-station-manager.cc:361) ==15241== by 0x4D6D507: ns3::MacLow::GetDataTxMode(ns3::Ptr, ns3::WifiMacHeader const*) const (mac-low.cc:963) ==15241== by 0x4D6D5D4: ns3::MacLow::StartDataTxTimers() (mac-low.cc:1265) ==15241== by 0x4D71783: ns3::MacLow::SendDataPacket() (mac-low.cc:1319) ==15241== by 0x4D760A4: ns3::MacLow::StartTransmission(ns3::Ptr, ns3::WifiMacHeader const*, ns3::MacLowTransmissionParameters, ns3::MacLowTransmissionListener*) (mac-low.cc:596) ==15241== ==15241== LEAK SUMMARY: ==15241== definitely lost: 9,200 bytes in 40 blocks. ==15241== indirectly lost: 4,000 bytes in 100 blocks. ==15241== possibly lost: 0 bytes in 0 blocks. ==15241== still reachable: 0 bytes in 0 blocks. ==15241== suppressed: 0 bytes in 0 blocks. Command ['/usr/bin/valgrind', '--leak-check=full', '--show-reachable=yes', '--error-exitcode=1', '/home/duy/ns-3-clean/ns-3-dev/build/debug/examples/wireless/multirate'] exited with code 1