From: Rob Richards Date: Mon, 14 May 2007 11:52:35 +0000 (+0000) Subject: free wholetext properly X-Git-Tag: php-5.2.3RC1~96 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d3c91bed3a85add5593dfce9591784abf8fd188;p=php free wholetext properly --- diff --git a/ext/dom/text.c b/ext/dom/text.c index e0458fb328..da7b34af1e 100644 --- a/ext/dom/text.c +++ b/ext/dom/text.c @@ -110,12 +110,11 @@ int dom_text_whole_text_read(dom_object *obj, zval **retval TSRMLS_DC) ALLOC_ZVAL(*retval); if (wholetext != NULL) { ZVAL_STRING(*retval, wholetext, 1); + xmlFree(wholetext); } else { ZVAL_EMPTY_STRING(*retval); } - xmlFree(wholetext); - return SUCCESS; }