Re: [xml] A leak in XmlTextReader?

On Fri, Mar 28, 2008 at 05:26:03PM +0100, Micha Renner wrote:

The use of xmlNewTextReaderFilename might create a memory leak, because

 I don't think so. I think you are confused because you did not call
the library initialization (and probably don't call the library cleanup
function once done).

Second version: The last statement in xmlFreeTextReader should be

 I assume you mean xmlCleanupCharEncodingHandlers(), as there is no 
xmlCleanupCharEncoding() function. In that case really you are mistaken.
Please read the documentation:

xmlCleanupCharEncodingHandlers() is called by xmlCleanupParser()


Red Hat Virtualization group
Daniel Veillard      | virtualization library
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]