1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-07 00:36:50 +03:00

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
This commit is contained in:
Michael Meskes
2012-01-05 14:08:45 +01:00
parent dfd26f9c5f
commit 8cf82ac53e
3 changed files with 17 additions and 6 deletions

View File

@ -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)