rrichards Mon May 14 11:52:35 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/dom text.c
Log:
free wholetext properly
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/text.c?r1=1.23.2.1.2.3&r2=1.23.2.1.2.4&diff_format=u
Index: php-src/ext/dom/text.c
diff -u php-src/ext/dom/text.c:1.23.2.1.2.3 php-src/ext/dom/text.c:1.23.2.1.2.4
--- php-src/ext/dom/text.c:1.23.2.1.2.3 Mon May 14 11:44:15 2007
+++ php-src/ext/dom/text.c Mon May 14 11:52:35 2007
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: text.c,v 1.23.2.1.2.3 2007/05/14 11:44:15 rrichards Exp $ */
+/* $Id: text.c,v 1.23.2.1.2.4 2007/05/14 11:52:35 rrichards Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -110,12 +110,11 @@
ALLOC_ZVAL(*retval);
if (wholetext != NULL) {
ZVAL_STRING(*retval, wholetext, 1);
+ xmlFree(wholetext);
} else {
ZVAL_EMPTY_STRING(*retval);
}
- xmlFree(wholetext);
-
return SUCCESS;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php