list: Set pointer to free()ed list to NULL.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
parent
9d958892ed
commit
8045081024
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ lif_list_free_nodes(struct lif_list **list)
|
||||||
|
|
||||||
free (iter);
|
free (iter);
|
||||||
free (*list);
|
free (*list);
|
||||||
|
*list = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue