From a829da152c6cdf425c6c81ef74b494ec87d90d99 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Wed, 21 Jun 2006 10:24:41 +0000 Subject: Added fixed from the coverity report send in by Joachim Wieland Added missing error handling in a few functions in ecpglib --- src/interfaces/ecpg/ecpglib/connect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/interfaces/ecpg/ecpglib/connect.c') diff --git a/src/interfaces/ecpg/ecpglib/connect.c b/src/interfaces/ecpg/ecpglib/connect.c index b3209db5cd2..5de287c973b 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.28 2006/06/19 09:19:49 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.29 2006/06/21 10:24:40 meskes Exp $ */ #define POSTGRES_ECPG_INTERNAL #include "postgres_fe.h" @@ -403,6 +403,7 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p ECPGfree(realname); if (dbname) ECPGfree(dbname); + ecpg_finish(this); return false; } } -- cgit v1.2.3