[PATCH] Fix some minor memory leaks

Sean Millichamp sean at bruenor.org
Mon Nov 2 18:39:33 CET 2009


There are some instances where asprintf() are used to construct strings
but the resulting allocated memory isn't ever free()d.  This patch
(against Nagios 3.2.0) makes sure that the strings allocated by asprintf
are freed when they are no longer needed.

Thanks,
Sean

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-fix-asprintf-leaks.patch
Type: text/x-patch
Size: 2893 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20091102/3a605e7f/attachment.bin>
-------------- next part --------------
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list