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;
 }
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to