Re: [xml] libxml memory leaks



* Yan Seiner wrote:
I am using libxml2-2.6.26, cross-compiled for an ARM platform.

I am seeing very severe memory leaks - on the order of 40K per 
invocation of xmlXPathNewContext (if I read valgrind correctly...)

I've gone through the code, and I am using

xmlFree(xpathCtx);

paired with every invocation of xmlXPathNewContext.

You have to use the proper deallocation routines, xmlXPathFreeContext,
xmlXPathFreeObject, and xmlFreeDoc in your case.
-- 
Björn Höhrmann · mailto:bjoern hoehrmann de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 



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