From: Dmitry Stogov Date: Fri, 11 Apr 2014 12:48:38 +0000 (+0400) Subject: Fixed double free X-Git-Tag: POST_PHPNG_MERGE~412^2~115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13f0c8b18c704bfcd339a56e50d54d1bc22a08d5;p=php Fixed double free --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index fa50a731c4..818ecf3632 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -6256,9 +6256,6 @@ void zend_do_indirect_references(znode *result, const znode *num_references, zno if (CG(active_op_array)->scope && CG(active_op_array)->this_var == -1) { zend_string *key = STR_INIT("this", sizeof("this")-1, 0); CG(active_op_array)->this_var = lookup_cv(CG(active_op_array), key TSRMLS_CC); - if (CG(active_op_array)->vars[EX_VAR_TO_NUM(CG(active_op_array)->this_var)] != key) { - STR_RELEASE(key); - } } } /* }}} */