Re: [xml] memory leak caused by xmlReader

On Wed, Apr 28, 2004 at 05:50:02PM +0200, Mickautsch, Alfred wrote:

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 Veillard      | Red Hat Desktop team
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]