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

Re: [xml] memory leak caused by xmlReader



On Wed, Apr 28, 2004 at 05:50:02PM +0200, Mickautsch, Alfred wrote:
> Hello,
> 
> the xmlTextReaderFree* functions do not call the deregister function
> (xmlDeregisterNodeDefaultValue). New nodes are created with calls to
> xmlNewNode* functions in xmlSAX2StartDocument, xmlSAX2StartElementNs,
> xmlSAX2Characters, etc. These call the corresponding register function.
> This causes memory leaks in my application, which relies on the
> fact that registered nodes will be deregistered.
> Is this behaviour so because the xmlNewNode* calls will be removed or is
> this a bug?

  Sounds like a bug, could you bugzilla it. It can probably be reproduced
with xmllint --stream and --chkregister,

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
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]