summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2006-11-08 10:48:21 +0000
committerMichael Meskes <meskes@postgresql.org>2006-11-08 10:48:21 +0000
commit171f936b51804f43477f48afa1935542ad0e355c (patch)
treeed23c0e00dfe7810a53ab61dae4759507354837f
parentfc8c5fbf5d7763b070f50b1afa85c7f955a83d77 (diff)
downloadpostgresql-171f936b51804f43477f48afa1935542ad0e355c.tar.gz
Applied patch by Peter Harris to free auto_mem struct in ECPGconnect.
-rw-r--r--src/interfaces/ecpg/ecpglib/connect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/ecpglib/connect.c b/src/interfaces/ecpg/ecpglib/connect.c
index 5e43e8e383..859b036140 100644
--- a/src/interfaces/ecpg/ecpglib/connect.c
+++ b/src/interfaces/ecpg/ecpglib/connect.c
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.24.4.5 2006/06/21 11:38:35 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.24.4.6 2006/11/08 10:48:21 meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
@@ -272,6 +272,8 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p
ECPGinit_sqlca(sqlca);
+ ECPGclear_auto_mem();
+
if (INFORMIX_MODE(compat))
{
char *envname;