From: Michael Meskes Date: Wed, 8 Nov 2006 10:48:27 +0000 (+0000) Subject: Applied patch by Peter Harris to free auto_mem struct in ECPGconnect. X-Git-Tag: REL8_1_6~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a2281c8e6f5ffe4fa67584f850bfa077e526115e;p=thirdparty%2Fpostgresql.git Applied patch by Peter Harris to free auto_mem struct in ECPGconnect. --- diff --git a/src/interfaces/ecpg/ecpglib/connect.c b/src/interfaces/ecpg/ecpglib/connect.c index 6f3a8ed10b8..8d1f285e244 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.26.2.4 2006/06/21 11:38:26 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.26.2.5 2006/11/08 10:48:27 meskes Exp $ */ #define POSTGRES_ECPG_INTERNAL #include "postgres_fe.h" @@ -277,6 +277,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;