[Axl] [BUG] small memory leak

Benoit Amiaux b.amiaux at ateme.com
Fri Aug 7 10:36:54 CEST 2009


Hello,

I believe there is a small memory leak in axl.
Some of my code is doing this:

axlNode* doc  = axl_doc_parse(my_xml_data, -1, NULL);
axlNode* root = axl_doc_get_root(doc);
axl_node_set_name(root, "my_name");
[ ... ] manipulate doc furthermore and dump it to text
axl_doc_free(doc);


The attached patch fix my memory leak, but I'm not completely sure.
if the patch is good, could it be committed to SVN please ?

Thank you,
Benoît AMIAUX
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: axl_node_leak.patch
Url: http://lists.aspl.es/pipermail/axl/attachments/20090807/28415595/attachment.txt 


More information about the Axl mailing list