From 77f93cb32d8711926b07030c1c73a57a7bc66911 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 23 May 2012 21:52:23 +0200 Subject: [PATCH] Add missing PQfinish() calls Fujii Masao --- src/bin/pg_basebackup/streamutil.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/pg_basebackup/streamutil.c b/src/bin/pg_basebackup/streamutil.c index 0de6f54e41..cc015370ff 100644 --- a/src/bin/pg_basebackup/streamutil.c +++ b/src/bin/pg_basebackup/streamutil.c @@ -167,6 +167,7 @@ GetConnection(void) { fprintf(stderr, _("%s: could not determine server setting for integer_datetimes\n"), progname); + PQfinish(tmpconn); exit(1); } @@ -178,6 +179,7 @@ GetConnection(void) { fprintf(stderr, _("%s: integer_datetimes compile flag does not match server\n"), progname); + PQfinish(tmpconn); exit(1); }