diff options
| author | Rob Richards <rrichards@php.net> | 2003-12-27 12:39:10 +0000 |
|---|---|---|
| committer | Rob Richards <rrichards@php.net> | 2003-12-27 12:39:10 +0000 |
| commit | c7e945888b997484cd44bd6ea8c2e950f1f96708 (patch) | |
| tree | e5ac02beda94f10535cc1822307de6870508cd25 /ext/dom/node.c | |
| parent | 563be668b822c5a0ed56efd22e4b1e62a49fc28b (diff) | |
| download | php-git-c7e945888b997484cd44bd6ea8c2e950f1f96708.tar.gz | |
fix libxml mem leak
Diffstat (limited to 'ext/dom/node.c')
| -rw-r--r-- | ext/dom/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dom/node.c b/ext/dom/node.c index 7ba321c2ce..27ea74daa3 100644 --- a/ext/dom/node.c +++ b/ext/dom/node.c @@ -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; } } |
