Re: [xml] possible memory leaks in xml library
- From: Daniel Veillard <veillard redhat com>
- To: Smita <Smita 3UpSystems com>
- Cc: xml rufus w3 org
- Subject: Re: [xml] possible memory leaks in xml library
- Date: Tue, 9 Oct 2001 03:18:35 -0400
On Mon, Oct 08, 2001 at 04:38:59PM -0700, Smita wrote:
Hi,
I am using xml for the first time. It appears to me that there is memory
leak in tree.c/parser.c
xmlStrndup keeps on allocating memory which is never freed. I was wondering
if I need to call some xml function to free the memory allocated by
xmlStrndup in my code. If yes, then what would that function be? Currently,
I do xmlCleanupParser() at the end of every function that calls xml library
routines, but this doesn't seem to help.
xmlFreeDoc() to free the generated document tree I assume !
http://xmlsoft.org/html/libxml-tree.html#XMLFREEDOC
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]