[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[xml] memory management issues
- From: "Nicholas Aaron Philbrook" <appleshampooid gmail com>
- To: xml gnome org
- Subject: [xml] memory management issues
- Date: Tue, 5 Dec 2006 02:39:40 -0800
I have been looking through the Docs and the API, and I'm not entirely
sure if I am adequately freeing all of the memory that libxml is
using. valgrind is
I am calling xmlParseMemory on a buffer of xml input that I get back
from a curl call, and calling xmlDocGetRootElement and looking for
various nodes and extracting some content.
For every xmlNodeGetContent I have an xmlFree
For every xmlParseMemory I have an xmlFreeDoc
Do I need anything else?
Also, I'm storing the result of xmlNodeGetContent in regular char *,
is it okay to call simple free() on these pointers when cleaning up?
Or does xmlFree do something that free() doesn't?
Thanks for any help.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]