rrichards               Wed Jan 25 17:33:24 2006 UTC

  Modified files:              
    /php-src/ext/dom    node.c 
  Log:
  fix possible crash in textContent
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/dom/node.c?r1=1.41&r2=1.42&diff_format=u
Index: php-src/ext/dom/node.c
diff -u php-src/ext/dom/node.c:1.41 php-src/ext/dom/node.c:1.42
--- php-src/ext/dom/node.c:1.41 Tue Jan 17 12:18:52 2006
+++ php-src/ext/dom/node.c      Wed Jan 25 17:33:24 2006
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: node.c,v 1.41 2006/01/17 12:18:52 dmitry Exp $ */
+/* $Id: node.c,v 1.42 2006/01/25 17:33:24 rrichards Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -840,10 +840,10 @@
 
        if(str != NULL) {
                ZVAL_STRING(*retval, str, 1);
+               xmlFree(str);
        } else {
                ZVAL_EMPTY_STRING(*retval);
        }
-       xmlFree(str);
 
        return SUCCESS;
 }

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

Reply via email to