Re: [xml] possible memory leaks in xml library

On Mon, Oct 08, 2001 at 04:38:59PM -0700, Smita wrote:
 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 !


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]