diff --git a/libifupdown/list.c b/libifupdown/list.c index 6b92b1c..11cfcf5 100644 --- a/libifupdown/list.c +++ b/libifupdown/list.c @@ -33,6 +33,7 @@ lif_list_free_nodes(struct lif_list **list) free (iter); free (*list); + *list = NULL; } void