Add missing release to ecma_op_container_foreach (#2912)
The result of the callback function was not freed Fixes #2910 Co-authored-by: Tibor Dusnoki [email protected] JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
This commit is contained in:
1 parent
8b459d9643
commit
03202995a0
2 files changed
+20
No files matched your search
@@ -548,6 +548,8 @@ ecma_op_container_foreach (ecma_value_t this_arg, /**< this argument */
|
||||
break;
|
||||
}
|
||||
|
||||
ecma_free_value (call_value);
|
||||
|
||||
ecma_value_p = ecma_collection_iterator_next (ecma_value_p);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user