mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fixing memory leak in opfunc_throw.
This commit is contained in:
parent
5a9d4563ec
commit
c5dd81cf76
@ -1486,7 +1486,7 @@ opfunc_throw (opcode_t opdata, /**< operation data */
|
||||
false),
|
||||
ret_value);
|
||||
|
||||
return ecma_make_throw_completion_value (ecma_copy_value (var_value.u.value, true));
|
||||
ret_value = ecma_make_throw_completion_value (ecma_copy_value (var_value.u.value, true));
|
||||
|
||||
ECMA_FINALIZE (var_value);
|
||||
|
||||
|
||||
@ -60,6 +60,10 @@ main( int __unused argc,
|
||||
|
||||
init_int( test_program);
|
||||
|
||||
return run_int() ? 0
|
||||
: 1;
|
||||
bool is_ok = run_int();
|
||||
|
||||
serializer_free ();
|
||||
mem_finalize (false);
|
||||
|
||||
return (is_ok ? 0 : 1);
|
||||
} /* main */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user