Add missing ecma_deref_ecma_string in ecma_builtin_typedarray_prototype_join (#2701)

This patch fixes #2698.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2019-01-15 09:01:33 +01:00
committed by László Langó
parent 9ced3addaa
commit ee267e8aa9
2 changed files with 21 additions and 0 deletions
@@ -1027,6 +1027,7 @@ ecma_builtin_typedarray_prototype_join (ecma_value_t this_arg, /**< this argumen
ecma_value_t next_string_value = ecma_op_typedarray_get_to_string_at_index (obj_p, k);
if (ECMA_IS_VALUE_ERROR (next_string_value))
{
ecma_deref_ecma_string (return_string_p);
ecma_free_value (first_value);
ecma_free_value (separator_value);
ecma_free_value (length_value);