Fix value release in ecma_builtin_typedarray_prototype_map (#3491)

JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
This commit is contained in:
Szilagyi Adam
2020-01-07 14:25:59 +01:00
committed by Robert Fancsik
parent 420643d645
commit 22e52e45af
2 changed files with 24 additions and 0 deletions
@@ -481,6 +481,7 @@ ecma_builtin_typedarray_prototype_map (ecma_value_t this_arg, /**< this argument
{
ecma_free_value (current_index);
ecma_free_value (get_value);
ecma_free_value (new_typedarray);
return mapped_value;
}
@@ -490,6 +491,7 @@ ecma_builtin_typedarray_prototype_map (ecma_value_t this_arg, /**< this argument
ecma_free_value (mapped_value);
ecma_free_value (current_index);
ecma_free_value (get_value);
ecma_free_value (new_typedarray);
return ECMA_VALUE_ERROR;
}
else