list: Set pointer to free()ed list to NULL.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
Maximilian Wilhelm 2020-07-28 23:30:09 +02:00
parent 9d958892ed
commit 8045081024

View file

@ -33,6 +33,7 @@ lif_list_free_nodes(struct lif_list **list)
free (iter); free (iter);
free (*list); free (*list);
*list = NULL;
} }
void void