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

From: Date: Wed, 25 Jan 2006 17:33:24 +0000
Subject: cvs: php-src /ext/dom node.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-36626@lists.php.net to get a copy of this message
rrichards Wed Jan 25 17:33:24 2006 UTC Modified files: /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.41&r2=1.42&diff_format=u Index: php-src/ext/dom/node.c diff -u php-src/ext/dom/node.c:1.41 php-src/ext/dom/node.c:1.42 --- php-src/ext/dom/node.c:1.41 Tue Jan 17 12:18:52 2006 +++ php-src/ext/dom/node.c Wed Jan 25 17:33:24 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: node.c,v 1.41 2006/01/17 12:18:52 dmitry Exp $ */ +/* $Id: node.c,v 1.42 2006/01/25 17:33:24 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; }

« previous php.cvs (#36626) next »