[reSIProcate] Memory leaks in Helper.cxx

Volodymyr Tarasenko tvntsr at yahoo.com
Tue Oct 19 13:54:07 CDT 2010


Hi, 

As I see there is a memory leak in Helper in some circumstances.

For example, let see a Helper::makeRequest(const NameAddr& target, const NameAddr& from, const NameAddr& contact, MethodTypes method).
At the first line a new sip message is allocated but in case of exception this object will never be deleted. Exception is possible if some badly formed values are in NameAddr...

The fix is in attach.

Regards,
Volodymyr!


      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-Helper.cxx
Type: text/x-c++src
Size: 3796 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20101019/8e3eeebf/attachment.cxx>


More information about the resiprocate-devel mailing list