cvs: php-src /ext/dom node.c

From: Date: Sat, 27 Dec 2003 12:39:11 +0000
Subject: cvs: php-src /ext/dom node.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-25446@lists.php.net to get a copy of this message
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; } }

« previous php.cvs (#25446) next »