From ab464b4db797566962710206f2d2f6ffc87c7a76 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Wed, 25 Apr 2018 11:08:50 +0200 Subject: [PATCH] object_heap: Bring back next free object id Signed-off-by: Paul Kocialkowski --- src/object_heap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/object_heap.c b/src/object_heap.c index 890e8ed..bc5998f 100644 --- a/src/object_heap.c +++ b/src/object_heap.c @@ -213,6 +213,7 @@ static void object_heap_free_unlocked(object_heap_p heap, object_base_p obj) ASSERT(obj->next_free == ALLOCATED); obj->next_free = heap->next_free; + heap->next_free = obj->id & OBJECT_HEAP_ID_MASK; } void object_heap_free(object_heap_p heap, object_base_p obj)