mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 18:41:52 +00:00
Merge pull request #191 from stesie/fix-double-free-exception
Fix use-after-free error wrt. pending exception
This commit is contained in:
commit
27343d2f65
@ -169,7 +169,6 @@ void v8js_v8_call(v8js_ctx *c, zval **return_value,
|
||||
/* There was pending exception left from earlier executions -> throw to PHP */
|
||||
if (Z_TYPE(c->pending_exception) == IS_OBJECT) {
|
||||
zend_throw_exception_object(&c->pending_exception TSRMLS_CC);
|
||||
zval_dtor(&c->pending_exception);
|
||||
ZVAL_NULL(&c->pending_exception);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user