From c7e945888b997484cd44bd6ea8c2e950f1f96708 Mon Sep 17 00:00:00 2001 From: Rob Richards Date: Sat, 27 Dec 2003 12:39:10 +0000 Subject: fix libxml mem leak --- ext/dom/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/dom/node.c') 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; } } -- cgit v1.2.1