mirror of
https://github.com/phpv8/v8js.git
synced 2024-09-19 00:25:18 +00:00
don't free interned strings, only persistent ones
This commit is contained in:
parent
d4cb8f5783
commit
18b79d9004
@ -991,8 +991,11 @@ static void v8js_persistent_zval_ctor(zval *p) /* {{{ */
|
||||
static void v8js_persistent_zval_dtor(zval *p) /* {{{ */
|
||||
{
|
||||
assert(Z_TYPE_P(p) == IS_STRING);
|
||||
|
||||
if (!ZSTR_IS_INTERNED(Z_STR_P(p))) {
|
||||
free(Z_STR_P(p));
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
static void v8js_script_free(v8js_script *res)
|
||||
|
Loading…
Reference in New Issue
Block a user