com php-src: Fixed double free: Zend/zend_compile.c
| From: | Dmitry Stogov | Date: | Fri, 11 Apr 2014 12:48:38 +0000 |
| Subject: | com php-src: Fixed double free: Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77416@lists.php.net to get a copy of this message | ||
Commit: 13f0c8b18c704bfcd339a56e50d54d1bc22a08d5
Author: Dmitry Stogov <dmitry@zend.com> Fri, 11 Apr 2014 16:48:38 +0400
Parents: 2614d945f8c6bd9510f2d145b5c9ee0f3fc093cc
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=13f0c8b18c704bfcd339a56e50d54d1bc22a08d5
Log:
Fixed double free
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index fa50a73..818ecf3 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);
- }
}
}
/* }}} */