mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fix ecma collection header deallocation (#2874)
Collection headers are allocated using the pool allocator, so they should be freed by it as well. JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
This commit is contained in:
parent
76a1fc5674
commit
fd3e982e69
@ -59,7 +59,7 @@ ecma_free_values_collection (ecma_collection_header_t *header_p, /**< collection
|
||||
ecma_collection_chunk_t *chunk_p = ECMA_GET_POINTER (ecma_collection_chunk_t,
|
||||
header_p->first_chunk_cp);
|
||||
|
||||
jmem_heap_free_block (header_p, sizeof (ecma_collection_header_t));
|
||||
jmem_pools_free (header_p, sizeof (ecma_collection_header_t));
|
||||
|
||||
if (chunk_p == NULL)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user