fix libxml mem leak

This commit is contained in:
Rob Richards 2003-12-27 12:39:10 +00:00
parent 563be668b8
commit c7e945888b

View File

@ -64,7 +64,7 @@ static void dom_reconcile_ns(xmlDocPtr doc, xmlNodePtr nodep) {
if (nodep->nsDef != NULL && nodep->nsDef->href != NULL) {
if((nsptr = xmlSearchNsByHref(doc, nodep->parent, nodep->nsDef->href)) &&
(nodep->nsDef->prefix == NULL || xmlStrEqual(nsptr->prefix, nodep->nsDef->prefix))) {
dom_set_old_ns(doc, nodep->ns);
dom_set_old_ns(doc, nodep->nsDef);
nodep->nsDef = NULL;
}
}