[collectd] avoid memory leak in ascent plugin

Bruno Prémont bonbons at linux-vserver.org
Sat Jan 10 14:29:15 CET 2009


According to libxml2 API doc, the string returned by
   xmlNodeListGetString()
must be freed by the user with
   xmlFree()

The attached patch adds the missing calls to xmlFree() for the ascent
plugin.

Bruno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: collectd-4.5.x-ascent-fixmemleak.patch
Type: text/x-patch
Size: 884 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090110/821578b2/attachment.bin 


More information about the collectd mailing list