[reSIProcate] Memory leak in SipMessage.
Jan Granqvist
jan_granqvist at yahoo.com
Wed Jun 4 04:09:20 CDT 2014
Hi all,
I ran some memory leak profiling and the result showed a memory leak of 8 bytes in the SipMessage class whenever the copy constructor was called.
Looking into the constructor, method 'init' is called which in turn calls method 'clear'.
Method 'clear' executes
// !bwc! The "invalid" 0 index.
mHeaders.push_back(getEmptyHfvl());
But when method 'init' continues executing
// .bwc. Clear out the pesky invalid 0 index.
mHeaders.clear();
the memory got lost.
I assume the problem also will occur when calling the assignment operator.
Thanks
/Janne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20140604/79023bf6/attachment.htm>
More information about the resiprocate-devel
mailing list