]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Applied patch by Peter Harris to free auto_mem struct in ECPGconnect.
authorMichael Meskes <meskes@postgresql.org>
Wed, 8 Nov 2006 10:48:21 +0000 (10:48 +0000)
committerMichael Meskes <meskes@postgresql.org>
Wed, 8 Nov 2006 10:48:21 +0000 (10:48 +0000)
src/interfaces/ecpg/ecpglib/connect.c

index 5e43e8e3839dd9c5a71b94ffe678201ae9bb4a83..859b0361404802a7274b35621d57f37e903f8eb4 100644 (file)
@@ -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;