[reSIProcate] valgrind output - Data.cxx - leak?

Daniel Pocock daniel at readytechnology.co.uk
Tue Mar 21 19:35:29 CST 2006


I've been testing my app with valgrind and noticed the following memory 
leak.  This occurs at the following line of code in Data.cxx (within the 
method resize):

    mBuf = new char[newCapacity+1];

It appears that the logic does free this allocation on subsequent 
resizes or from the desctructor, but I get this same output every time I 
run the program:


==15595== 34 bytes in 1 blocks are definitely lost in loss record 47 of 110
==15595==    at 0x401BCC9: operator new[](unsigned) 
(vg_replace_malloc.c:197)
==15595==    by 0x46BFCA8: resip::Data::resize(unsigned, bool) 
(Data.cxx:1020)
==15595==    by 0x46BFA3C: resip::Data::reserve(unsigned) (Data.cxx:929)
==15595==    by 0x45DCFD5: resip::Uri::getAor() const (Uri.cxx:739)
==15595==    by 0x4116FF4: 
resip::BaseCreator::makeInitialRequest(resip::NameAddr const&, 
resip::NameAddr const&, resip::MethodTypes) (BaseCreator.cxx:84)
==15595==    by 0x4116919: 
resip::BaseCreator::makeInitialRequest(resip::NameAddr const&, 
resip::MethodTypes) (BaseCreator.cxx:47)
==15595==    by 0x4182B0B: 
resip::InviteSessionCreator::InviteSessionCreator(resip::DialogUsageManager&, 
resip::NameAddr const&, resip::SharedPtr<resip::UserProfile>, 
resip::SdpContents const*, resip::DialogUsageManager::EncryptionLevel, 
resip::SdpContents const*, resip::Handle<resip::ServerSubscription>) 
(InviteSessionCreator.cxx:24)
==15595==    by 0x41526B2: 
resip::DialogUsageManager::makeInviteSession(resip::NameAddr const&, 
resip::SharedPtr<resip::UserProfile> const&, resip::SdpContents const*, 
resip::DialogUsageManager::EncryptionLevel, resip::SdpContents const*, 
resip::AppDialogSet*) (DialogUsageManager.cxx:490)
==15595==    by 0x41525CC: 
resip::DialogUsageManager::makeInviteSession(resip::NameAddr const&, 
resip::SharedPtr<resip::UserProfile> const&, resip::SdpContents const*, 
resip::AppDialogSet*) (DialogUsageManager.cxx:473)




More information about the resiprocate-devel mailing list