cvs: php-src(PHP_5_1) /ext/dom node.c
| From: | Rob Richards | Date: | Wed, 25 Jan 2006 17:34:05 +0000 |
| Subject: | cvs: php-src(PHP_5_1) /ext/dom node.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36627@lists.php.net to get a copy of this message | ||
rrichards Wed Jan 25 17:34:05 2006 UTC
Modified files: (Branch: PHP_5_1)
/php-src/ext/dom node.c
Log:
fix possible crash in textContent
http://cvs.php.net/viewcvs.cgi/php-src/ext/dom/node.c?r1=1.37.2.2&r2=1.37.2.3&diff_format=u
Index: php-src/ext/dom/node.c
diff -u php-src/ext/dom/node.c:1.37.2.2 php-src/ext/dom/node.c:1.37.2.3
--- php-src/ext/dom/node.c:1.37.2.2 Sun Jan 1 12:50:06 2006
+++ php-src/ext/dom/node.c Wed Jan 25 17:34:05 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: node.c,v 1.37.2.2 2006/01/01 12:50:06 sniper Exp $ */
+/* $Id: node.c,v 1.37.2.3 2006/01/25 17:34:05 rrichards Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -840,10 +840,10 @@
if(str != NULL) {
ZVAL_STRING(*retval, str, 1);
+ xmlFree(str);
} else {
ZVAL_EMPTY_STRING(*retval);
}
- xmlFree(str);
return SUCCESS;
}