Re: [xml] xmlParserCtxt Leak?



Andreas Stricker wrote:
You should first initialize the library, using the LIBXML_TEST_VERSION
macro. Still don't forget to add xmlCleanupParser() at the very end:

As noted by Daniel Veillard, this isn't a memory leak, just the per thread
data that exists exactly once per thread, don't grow and is destroyed with
the thread or the main process.

But to shut up valgrind you could follow my example.

Cheers, Andy



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