summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2021-03-24 22:06:31 +0100
committerMichael Meskes <meskes@postgresql.org>2021-03-24 22:06:31 +0100
commit65c2ec6f30d9c0878a9ef83e0ec9a53e6b82d9d8 (patch)
tree5c1a58ea9b280dc526b1ca57a657742c9c26315d /src/interfaces/ecpg
parentad8305a43d1890768a613d3fb586b44f17360f29 (diff)
downloadpostgresql-65c2ec6f30d9c0878a9ef83e0ec9a53e6b82d9d8.tar.gz
Need to step forward in the loop to get to an end.
Diffstat (limited to 'src/interfaces/ecpg')
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/preproc/ecpg.c b/src/interfaces/ecpg/preproc/ecpg.c
index 3c6506017d..ee2fa51588 100644
--- a/src/interfaces/ecpg/preproc/ecpg.c
+++ b/src/interfaces/ecpg/preproc/ecpg.c
@@ -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);
}