1
0
Fork 0
mirror of https://github.com/Scandal-UK/Incognito_RCM.git synced 2024-12-22 10:22:04 +00:00

heap: Prevent node chain collapse on free

This commit is contained in:
shchmue 2019-10-25 18:54:22 -06:00
parent b71b1ff907
commit cce2c9d27b

View file

@ -56,6 +56,7 @@ static u32 _heap_alloc(heap_t *heap, u32 size, u32 alignment)
node->used = 1;
new->used = 0;
new->next = node->next;
new->next->prev = new;
new->prev = node;
node->next = new;