aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/misc.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2012-01-05 14:08:45 +0100
committerMichael Meskes <meskes@postgresql.org>2012-01-05 14:08:45 +0100
commit8cf82ac53e9a3d5dd86f16106e3398063a526817 (patch)
treeb176e03222f8ad171d8a35b1e468149e989ab9f0 /src/interfaces/ecpg/ecpglib/misc.c
parentdfd26f9c5f371437f243249025863ea9911aacaa (diff)
downloadpostgresql-8cf82ac53e9a3d5dd86f16106e3398063a526817.tar.gz
postgresql-8cf82ac53e9a3d5dd86f16106e3398063a526817.zip
Ecpglib stores variables that are used in DECLARE statements in a global list.
This list is now freed when the last connection has been closed. Closes: #6366
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/misc.c')
-rw-r--r--src/interfaces/ecpg/ecpglib/misc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/interfaces/ecpg/ecpglib/misc.c b/src/interfaces/ecpg/ecpglib/misc.c
index 98e0597b03c..f24478271cd 100644
--- a/src/interfaces/ecpg/ecpglib/misc.c
+++ b/src/interfaces/ecpg/ecpglib/misc.c
@@ -501,12 +501,7 @@ ecpg_gettext(const char *msgid)
}
#endif /* ENABLE_NLS */
-static struct var_list
-{
- int number;
- void *pointer;
- struct var_list *next;
-} *ivlist = NULL;
+struct var_list *ivlist = NULL;
void
ECPGset_var(int number, void *pointer, int lineno)