From ab6aa40b647aac1352eb95b6c2fefa8452cd8bf5 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Sun, 13 Aug 2006 10:18:31 +0000 Subject: Applied patch for VPATH builds by Alvaro Herrera Merged dyntest.pgc and dyntest2.pgc. Hopefully fixed the last Coverity reports (finally) --- src/interfaces/ecpg/ecpglib/connect.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (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 2192f0311f5..dd855025f43 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.32 2006/08/02 13:43:22 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.33 2006/08/13 10:18:29 meskes Exp $ */ #define POSTGRES_ECPG_INTERNAL #include "postgres_fe.h" @@ -387,8 +387,9 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p ECPGraise(lineno, ECPG_CONNECT, ECPG_SQLSTATE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION, realname ? realname : ""); if (host) ECPGfree(host); - if (port) - ECPGfree(port); + /* port not set yet + * if (port) + * ECPGfree(port); */ if (options) ECPGfree(options); if (realname) -- cgit v1.2.3