[xml] memory leak caused by xmlReader



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?

Servus -- Alfred



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