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