1
0
Fork 0
mirror of https://github.com/s1204IT/Lockpick_RCM.git synced 2024-09-20 05:53:33 +01:00

heap: Prevent node chain collapse on free

This commit is contained in:
shchmue 2019-10-25 11:41:30 -06:00
parent e5849e3ab2
commit b468026540

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;