1.1 --- a/src/linked_list.c Sun May 21 14:40:05 2023 +0200 1.2 +++ b/src/linked_list.c Sun May 21 14:56:10 2023 +0200 1.3 @@ -876,11 +876,13 @@ 1.4 1.5 cx_linked_list_node *node = ll->begin; 1.6 while (node) { 1.7 + cx_invoke_destructor(list, node->payload); 1.8 void *next = node->next; 1.9 cxFree(list->allocator, node); 1.10 node = next; 1.11 } 1.12 - // do not free the list pointer, this is just a destructor! 1.13 + 1.14 + cxFree(list->allocator, list); 1.15 } 1.16 1.17 static cx_list_class cx_linked_list_class = {