Add missing release value call for opfunc_addition (#2899)
Right_value wasn't correctly freed in case of an error. Fixes #2894 Fixes #2897 Co-authored-by: Tibor Dusnoki <tdusnoki@inf.u-szeged.hu> JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
This commit is contained in:
committed by
Dániel Bátyai
parent
e2646f93cc
commit
351acdf545
@@ -145,6 +145,7 @@ opfunc_addition (ecma_value_t left_value, /**< left value */
|
||||
|
||||
if (ECMA_IS_VALUE_ERROR (str_right_value))
|
||||
{
|
||||
ecma_free_value (right_value);
|
||||
ecma_deref_ecma_string (string1_p);
|
||||
return str_right_value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user