diff options
author | Michael Meskes <meskes@postgresql.org> | 2006-06-21 10:29:50 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2006-06-21 10:29:50 +0000 |
commit | 08f197391135951f7e60d65457103307dea89f0c (patch) | |
tree | 7d7f4c50018106b89d9d47cc4816145c33d0c5b1 /src/interfaces/ecpg/ecpglib/connect.c | |
parent | 23623f05f05fcdc3142e83bf21cf4dc10e16aafd (diff) | |
download | postgresql-08f197391135951f7e60d65457103307dea89f0c.tar.gz postgresql-08f197391135951f7e60d65457103307dea89f0c.zip |
Added fixes from the coverity report send in by Joachim Wieland <joe@mcknight.de>
Added missing error handling in a few functions in ecpglib.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/connect.c')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/connect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/ecpglib/connect.c b/src/interfaces/ecpg/ecpglib/connect.c index 0964fa8a8f9..91f09e1e2ff 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.26.2.2 2006/06/19 09:20:07 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.26.2.3 2006/06/21 10:29:50 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; } } |