1
0
Fork 0
mirror of https://github.com/Scandal-UK/Incognito_RCM.git synced 2024-11-08 05:01:45 +00:00

Merge pull request #1 from shchmue/master

heap: Prevent node chain collapse on free
This commit is contained in:
jimzrt 2019-10-26 12:24:57 +02:00 committed by GitHub
commit f6b90c5356
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;