Need to step forward in the loop to get to an end.
authorMichael Meskes <[email protected]>
Wed, 24 Mar 2021 21:06:31 +0000 (22:06 +0100)
committerMichael Meskes <[email protected]>
Wed, 24 Mar 2021 21:06:31 +0000 (22:06 +0100)
src/interfaces/ecpg/preproc/ecpg.c

index 3c6506017d886d14d826f9e0d6b65edda3016a54..ee2fa51588806e7776158291da9683b4904c106a 100644 (file)
@@ -379,6 +379,7 @@ main(int argc, char *const argv[])
                for (list = g_declared_list; list != NULL;)
                {
                    struct declared_list *this = list;
+                   list = list->next;
                    free(this);
                }