mirror of
https://github.com/php/php-src.git
synced 2024-12-24 17:30:48 +08:00
fix libxml mem leak
This commit is contained in:
parent
563be668b8
commit
c7e945888b
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user