Fixed use after free

This commit is contained in:
Dmitry Stogov 2015-10-09 01:09:22 +03:00
parent 91fb3a7b27
commit 05bd331c6a

View file

@ -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;
}
/* }}} */