From abb1805338eb17085bf922042ed720b678f381ee Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 19 Apr 2023 10:49:00 +0200 Subject: [PATCH] linking new head in why2_list_remove --- src/core/lib/utils/llist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/lib/utils/llist.c b/src/core/lib/utils/llist.c index 5d45b53..546ed85 100644 --- a/src/core/lib/utils/llist.c +++ b/src/core/lib/utils/llist.c @@ -79,6 +79,8 @@ void why2_list_remove(why2_list_t *list, why2_node_t *node) buffer_2 -> next = buffer_1 -> next; } + list -> head = head; + //DEALLOCATION free(node -> value); free(node);