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:
committed by
Robert Fancsik
parent
420643d645
commit
22e52e45af
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user