0
0
mirror of https://github.com/phpv8/v8js.git synced 2025-01-03 15:41:55 +00:00

Fix double free

Fix double free of `php_value` and free `php_ret_value` instead
(which otherwise leaks).
This commit is contained in:
Stefan Siegl 2015-12-30 15:54:47 +01:00
parent ad4d8e4110
commit 64bfa552ad

View File

@ -675,7 +675,7 @@ v8::Local<v8::Value> v8js_named_property_callback(v8::Local<v8::String> property
zval php_ret_value;
zend_call_method_with_2_params(&zobject, ce, &ce->__set, ZEND_SET_FUNC_NAME, &php_ret_value, &zname, &php_value);
ret_value = zval_to_v8js(&php_ret_value, isolate TSRMLS_CC);
zval_ptr_dtor(&php_value);
zval_ptr_dtor(&php_ret_value);
}
}