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:
1 parent
5101d932f7
commit
66683e5d4b
2 files changed
+6
No files matched your search
@@ -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;
|
||||||
|
|||||||
@@ -717,6 +717,9 @@ main (int argc,
|
|||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jerry_release_value (ret_value);
|
||||||
|
ret_value = jerry_create_undefined ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user