Need to step forward in the loop to get to an end.
This commit is contained in:
parent
ad8305a43d
commit
65c2ec6f30
|
@ -379,6 +379,7 @@ main(int argc, char *const argv[])
|
||||||
for (list = g_declared_list; list != NULL;)
|
for (list = g_declared_list; list != NULL;)
|
||||||
{
|
{
|
||||||
struct declared_list *this = list;
|
struct declared_list *this = list;
|
||||||
|
list = list->next;
|
||||||
free(this);
|
free(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue