We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
2 parents 5626633 + 5ca5520 commit 54326ddCopy full SHA for 54326dd
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