Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65c2ec6

Browse files
author
Michael Meskes
committed
Need to step forward in the loop to get to an end.
1 parent ad8305a commit 65c2ec6

File tree

1 file changed

+1
-0
lines changed
  • src/interfaces/ecpg/preproc

1 file changed

+1
-0
lines changed

src/interfaces/ecpg/preproc/ecpg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ main(int argc, char *const argv[])
379379
for (list = g_declared_list; list != NULL;)
380380
{
381381
struct declared_list *this = list;
382+
list = list->next;
382383
free(this);
383384
}
384385

0 commit comments

Comments
 (0)