mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 23:51:51 +00:00
efree resource memory
This commit is contained in:
parent
d8a6467903
commit
7d13c75073
3
v8js.cc
3
v8js.cc
@ -1339,7 +1339,7 @@ static PHP_METHOD(V8Js, executeString)
|
||||
}
|
||||
php_v8js_execute_script(getThis(), res, flags, time_limit, memory_limit, &return_value TSRMLS_CC);
|
||||
php_v8js_script_free(res, true);
|
||||
|
||||
efree(res);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
@ -1405,6 +1405,7 @@ static PHP_METHOD(V8Js, checkString)
|
||||
}
|
||||
|
||||
php_v8js_script_free(res, true);
|
||||
efree(res);
|
||||
RETURN_TRUE;
|
||||
}
|
||||
/* }}} */
|
||||
|
Loading…
Reference in New Issue
Block a user