diff --git a/lib/linklist.c b/lib/linklist.c index 12ff03311467..28dd777b8202 100644 --- a/lib/linklist.c +++ b/lib/linklist.c @@ -331,7 +331,7 @@ void list_delete_all_node(struct list *list) next = node->next; if (*list->del) (*list->del)(node->data); - list_delete_node(list, node); + listnode_free(list, node); } list->head = list->tail = NULL; list->count = 0;