From: Rob Richards Date: Wed, 25 Jan 2006 17:33:24 +0000 (+0000) Subject: fix possible crash in textContent X-Git-Tag: RELEASE_1_2~363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8ded17f81adc0c8b068f87eb59b6b0a9eeabefe;p=php fix possible crash in textContent --- diff --git a/ext/dom/node.c b/ext/dom/node.c index ebe88e2d0a..6630dc13ad 100644 --- a/ext/dom/node.c +++ b/ext/dom/node.c @@ -840,10 +840,10 @@ int dom_node_text_content_read(dom_object *obj, zval **retval TSRMLS_DC) if(str != NULL) { ZVAL_STRING(*retval, str, 1); + xmlFree(str); } else { ZVAL_EMPTY_STRING(*retval); } - xmlFree(str); return SUCCESS; }