cvs: php-src(PHP_5_2) /ext/dom text.c

From: Date: Mon, 14 May 2007 11:52:35 +0000
Subject: cvs: php-src(PHP_5_2) /ext/dom text.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-44294@lists.php.net to get a copy of this message
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; }

« previous php.cvs (#44294) next »