From 7d13c750730dde68666e5d5976bf4643244a9835 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sat, 20 Sep 2014 22:50:59 +0200 Subject: [PATCH] efree resource memory --- v8js.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v8js.cc b/v8js.cc index 30e5204..746bbf0 100644 --- a/v8js.cc +++ b/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; } /* }}} */