The main-unix utility should free the return value to avoid leaks. (#1578)

Fixes #1545.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
This commit is contained in:
Zoltan Herczeg authored and GitHub committed 2017-02-14 10:09:51 +01:00
1 parent 5101d932f7
commit 66683e5d4b
2 files changed
+6

No files matched your search

+3
View File
@@ -110,6 +110,9 @@ main (int argc,
{ {
break; break;
} }
jerry_release_value (ret_value);
ret_value = jerry_create_undefined ();
} }
int ret_code = JERRY_STANDALONE_EXIT_CODE_OK; int ret_code = JERRY_STANDALONE_EXIT_CODE_OK;
+3
View File
@@ -717,6 +717,9 @@ main (int argc,
{ {
break; break;
} }
jerry_release_value (ret_value);
ret_value = jerry_create_undefined ();
} }
} }