mirror of
https://github.com/phpv8/v8js.git
synced 2025-03-22 03:27:02 +00:00
free v8::Persistent<v8::Script> on bailout
This commit is contained in:
parent
a520f49335
commit
8de27fd2ce
@ -554,8 +554,17 @@ static PHP_METHOD(V8Js, executeString)
|
|||||||
if (!res) {
|
if (!res) {
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
}
|
}
|
||||||
v8js_execute_script(getThis(), res, flags, time_limit, memory_limit, &return_value TSRMLS_CC);
|
|
||||||
v8js_script_free(res);
|
zend_try {
|
||||||
|
v8js_execute_script(getThis(), res, flags, time_limit, memory_limit, &return_value TSRMLS_CC);
|
||||||
|
v8js_script_free(res);
|
||||||
|
}
|
||||||
|
zend_catch {
|
||||||
|
v8js_script_free(res);
|
||||||
|
zend_bailout();
|
||||||
|
}
|
||||||
|
zend_end_try()
|
||||||
|
|
||||||
efree(res);
|
efree(res);
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user