summaryrefslogtreecommitdiff
path: root/Zend/zend_closures.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-10-09 01:09:22 +0300
committerDmitry Stogov <dmitry@zend.com>2015-10-09 01:09:22 +0300
commit05bd331c6a86ba157785338b2512e217e40f3312 (patch)
tree5581d2ddfeaf667f8de0f55a264207ccb096ca54 /Zend/zend_closures.c
parent91fb3a7b2791f97363b085747e98d14efb23a485 (diff)
downloadphp-git-05bd331c6a86ba157785338b2512e217e40f3312.tar.gz
Fixed use after free
Diffstat (limited to 'Zend/zend_closures.c')
-rw-r--r--Zend/zend_closures.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_closures.c b/Zend/zend_closures.c
index 9f2292b878..b035a4f54a 100644
--- a/Zend/zend_closures.c
+++ b/Zend/zend_closures.c
@@ -523,7 +523,7 @@ static void zend_closure_internal_handler(INTERNAL_FUNCTION_PARAMETERS) /* {{{ *
zend_closure *closure = (zend_closure*)EX(func)->common.prototype;
closure->orig_internal_handler(INTERNAL_FUNCTION_PARAM_PASSTHRU);
OBJ_RELEASE((zend_object*)closure);
- EX(func)->common.prototype = NULL;
+ EX(func) = NULL;
}
/* }}} */