We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
defrag_free_list
1 parent d6f7407 commit 5ca5520Copy full SHA for 5ca5520
libraries/ea_malloc/malloc_freelist.c
@@ -20,7 +20,7 @@
20
21
/*
22
* This is the container for our free-list.
23
- * Node the usage of the linked list here: the library uses offsetof
+ * Note the usage of the linked list here: the library uses offsetof
24
* and container_of to manage the list and get back to the parent struct.
25
*/
26
typedef struct
@@ -67,7 +67,7 @@ void defrag_free_list(void)
67
{
68
if((((uintptr_t)&lb->block) + lb->size) == (uintptr_t)b)
69
70
- lb->size += sizeof(*b) + b->size;
+ lb->size += ALLOC_HEADER_SZ + b->size;
71
list_del(&b->node);
72
continue;
73
}
0 commit comments