1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Applied patch by Peter Harris to free auto_mem structure on connect

This commit is contained in:
Michael Meskes
2006-11-08 10:46:47 +00:00
parent 415b925345
commit 0c96e42797
3 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.36 2006/10/04 00:30:11 momjian Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.37 2006/11/08 10:46:47 meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
@ -277,6 +277,9 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p
ECPGinit_sqlca(sqlca);
/* clear auto_mem structure because some error handling functions might access it */
ECPGclear_auto_mem();
if (INFORMIX_MODE(compat))
{
char *envname;