Skip to content
Snippets Groups Projects
Commit 3b56909d authored by Basile Desloges's avatar Basile Desloges
Browse files

[eacsl:runtime] Fix tracking of deallocation

The number of allocated blocks wasn't decremented on deallocation.
parent 671fdbfa
No related branches found
No related tags found
No related merge requests found
...@@ -979,7 +979,7 @@ static void unset_heap_segment(void *ptr, int init, const char *function) { ...@@ -979,7 +979,7 @@ static void unset_heap_segment(void *ptr, int init, const char *function) {
/* Nullify shadow block */ /* Nullify shadow block */
memset(base_shadow, ZERO, alloc_size); memset(base_shadow, ZERO, alloc_size);
/* Adjust tracked allocation size */ /* Adjust tracked allocation size */
heap_allocation_size -= length; update_heap_allocation(-length);
#ifdef E_ACSL_TEMPORAL /*{{{*/ #ifdef E_ACSL_TEMPORAL /*{{{*/
/* Nullify temporal shadow */ /* Nullify temporal shadow */
uintptr_t *t_base_shadow = (uintptr_t*)TEMPORAL_HEAP_SHADOW(ptr); uintptr_t *t_base_shadow = (uintptr_t*)TEMPORAL_HEAP_SHADOW(ptr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment