diff options
author | Michael Meskes <meskes@postgresql.org> | 2006-08-13 10:18:31 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2006-08-13 10:18:31 +0000 |
commit | ab6aa40b647aac1352eb95b6c2fefa8452cd8bf5 (patch) | |
tree | 204a79a120babaf78397f48b834d3c4e98651678 /src/interfaces/ecpg/ecpglib/connect.c | |
parent | b5633943cbbb6ab11b8dce438de749b221d7ed27 (diff) | |
download | postgresql-ab6aa40b647aac1352eb95b6c2fefa8452cd8bf5.tar.gz postgresql-ab6aa40b647aac1352eb95b6c2fefa8452cd8bf5.zip |
Applied patch for VPATH builds by Alvaro Herrera <alvherre@commandprompt.com>
Merged dyntest.pgc and dyntest2.pgc.
Hopefully fixed the last Coverity reports (finally)
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/connect.c')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/connect.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 : "<DEFAULT>"); if (host) ECPGfree(host); - if (port) - ECPGfree(port); + /* port not set yet + * if (port) + * ECPGfree(port); */ if (options) ECPGfree(options); if (realname) |