0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-23 04:51:53 +00:00

efree resource memory

This commit is contained in:
Stefan Siegl 2014-09-20 22:50:59 +02:00
parent d8a6467903
commit 7d13c75073

View File

@ -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_execute_script(getThis(), res, flags, time_limit, memory_limit, &return_value TSRMLS_CC);
php_v8js_script_free(res, true); php_v8js_script_free(res, true);
efree(res);
} }
/* }}} */ /* }}} */
@ -1405,6 +1405,7 @@ static PHP_METHOD(V8Js, checkString)
} }
php_v8js_script_free(res, true); php_v8js_script_free(res, true);
efree(res);
RETURN_TRUE; RETURN_TRUE;
} }
/* }}} */ /* }}} */