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

Fixes #1545.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2017-02-14 10:09:51 +01:00
committed by GitHub
parent 5101d932f7
commit 66683e5d4b
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -110,6 +110,9 @@ main (int argc,
{
break;
}
jerry_release_value (ret_value);
ret_value = jerry_create_undefined ();
}
int ret_code = JERRY_STANDALONE_EXIT_CODE_OK;
+3
View File
@@ -717,6 +717,9 @@ main (int argc,
{
break;
}
jerry_release_value (ret_value);
ret_value = jerry_create_undefined ();
}
}