Re: [xml] A leak in XmlTextReader?
- From: Daniel Veillard <veillard redhat com>
- To: Micha Renner <Micha Renner t-online de>
- Cc: xml gnome org
- Subject: Re: [xml] A leak in XmlTextReader?
- Date: Mon, 31 Mar 2008 04:30:17 -0400
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/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]