Memory leaks in ReceiverTest.cpp

Bug #325079 reported by Daniel Bültmann
2
Affects Status Importance Assigned to Milestone
openWNS OFDMA Phy
New
Undecided
Unassigned

Bug Description

There are several memory leaks in ReceiverTest.cpp . Several objects are created in the prepare() method, but they are note delete in the cleanup() method. You can see the leak reports at

http://buildbot.openwns.org/builders/x86%20ubuntu_hardy%20memcheck

At the end of the logfile several leaks are listed. For example this one:

==14283== 1,720 bytes in 5 blocks are possibly lost in loss record 262 of 278
==14283== at 0x4023294: operator new(unsigned) (vg_replace_malloc.c:224)
==14283== by 0x68AF33D: ofdmaphy::tests::OFDMATest::prepare() (ReceiverTest.cpp:84)
==14283== by 0x477104D: wns::TestFixture::setUp() (TestFixture.cpp:41)
==14283== by 0x68B13C5: CppUnit::TestCaller<ofdmaphy::tests::OFDMATest>::setUp() (TestCaller.h:177)
==14283== by 0x52E4DA6: CppUnit::TestCaseMethodFunctor::operator()() const (in /usr/lib/libcppunit-1.12.so.0.0.0)
==14283== by 0x52D7109: CppUnit::DefaultProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==14283== by 0x52E0942: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /usr/lib/libcppunit-1.12.so.0.0.0)
==14283== by 0x52E0643: CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==14283== by 0x52ECF62: CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*, std::string const&) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==14283== by 0x52E49F9: CppUnit::TestCase::run(CppUnit::TestResult*) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==14283== by 0x52E542E: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==14283== by 0x52E5369: CppUnit::TestComposite::run(CppUnit::TestResult*) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==14283== by 0x52E542E: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==14283== by 0x52E5369: CppUnit::TestComposite::run(CppUnit::TestResult*) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==14283== by 0x52E542E: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==14283== by 0x52E5369: CppUnit::TestComposite::run(CppUnit::TestResult*) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==14283== by 0x52ECCD9: CppUnit::TestResult::runTest(CppUnit::Test*) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==14283== by 0x52EF26F: CppUnit::TestRunner::run(CppUnit::TestResult&, std::string const&) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==14283== by 0x52F284A: CppUnit::TextTestRunner::run(CppUnit::TestResult&, std::string const&) (in /usr/lib/libcppunit-1.12.so.0.0.0)
==14283== by 0x52F28C4: CppUnit::TextTestRunner::run(std::string, bool, bool, bool) (in /usr/lib/libcppunit-1.12.so.0.0.0)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.