object_heap: Bring back next free object id

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
This commit is contained in:
Paul Kocialkowski
2018-04-25 11:08:50 +02:00
parent 294a6c958a
commit ab464b4db7
+1
View File
@@ -213,6 +213,7 @@ static void object_heap_free_unlocked(object_heap_p heap, object_base_p obj)
ASSERT(obj->next_free == ALLOCATED); ASSERT(obj->next_free == ALLOCATED);
obj->next_free = heap->next_free; 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) void object_heap_free(object_heap_p heap, object_base_p obj)