[reSIProcate] Memory leak patch for DnsInterface.cxx
Scott Zuk
szuk at telusplanet.net
Tue Jan 18 20:17:10 CST 2005
Hi,
I've attached a patch that fixes a small memory leak in
DnsInterface::errorMessage() that occurs because the c string returned on the
heap by ExternalDns::errorMessage() is not deleted. The patch also modifies
AresDns::errorMessage() in AresDns.cxx to append a null character to the
error string, since the Data() constructor uses strlen() which requires the
presence of a null char.
Regards,
~Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dnserrmsg_memleak_fix.diff
Type: text/x-diff
Size: 871 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20050118/d83d3013/attachment.diff>
More information about the resiprocate-devel
mailing list