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

From: Date: Mon, 14 May 2007 11:54:59 +0000
Subject: cvs: php-src /ext/dom text.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-44295@lists.php.net to get a copy of this message
rrichards Mon May 14 11:54:59 2007 UTC Modified files: /php-src/ext/dom text.c Log: MFB: free wholetext properly http://cvs.php.net/viewvc.cgi/php-src/ext/dom/text.c?r1=1.32&r2=1.33&diff_format=u Index: php-src/ext/dom/text.c diff -u php-src/ext/dom/text.c:1.32 php-src/ext/dom/text.c:1.33 --- php-src/ext/dom/text.c:1.32 Mon May 14 11:44:50 2007 +++ php-src/ext/dom/text.c Mon May 14 11:54:58 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: text.c,v 1.32 2007/05/14 11:44:50 rrichards Exp $ */ +/* $Id: text.c,v 1.33 2007/05/14 11:54:58 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -110,12 +110,11 @@ ALLOC_ZVAL(*retval); if (wholetext != NULL) { ZVAL_XML_STRING(*retval, wholetext, ZSTR_DUPLICATE); + xmlFree(wholetext); } else { ZVAL_EMPTY_STRING(*retval); } - xmlFree(wholetext); - return SUCCESS; }

« previous php.cvs (#44295) next »