On Fri, Mar 28, 2008 at 05:26:03PM +0100, Micha Renner wrote:
> Hello,
> 
> 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
> xmlCleanupCharEncoding().

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

xmlCleanupCharEncodingHandlers() is called by xmlCleanupParser()

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to