From 80450810244cdf01da5e5d196d86b750d671cc3a Mon Sep 17 00:00:00 2001 From: Maximilian Wilhelm Date: Tue, 28 Jul 2020 23:30:09 +0200 Subject: [PATCH] list: Set pointer to free()ed list to NULL. Signed-off-by: Maximilian Wilhelm --- libifupdown/list.c | 1 + 1 file changed, 1 insertion(+) 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