rrichards Sat Dec 27 07:39:11 2003 EDT Modified files: /php-src/ext/dom node.c Log: fix libxml mem leak Index: php-src/ext/dom/node.c diff -u php-src/ext/dom/node.c:1.20 php-src/ext/dom/node.c:1.21 --- php-src/ext/dom/node.c:1.20 Sat Dec 27 05:29:52 2003 +++ php-src/ext/dom/node.c Sat Dec 27 07:39:10 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: node.c,v 1.20 2003/12/27 10:29:52 rrichards Exp $ */ +/* $Id: node.c,v 1.21 2003/12/27 12:39:10 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -64,7 +64,7 @@ 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; } }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php