aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_basebackup/streamutil.c
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2012-05-23 21:52:23 +0200
committerMagnus Hagander <magnus@hagander.net>2012-05-23 21:52:23 +0200
commit77f93cb32d8711926b07030c1c73a57a7bc66911 (patch)
tree09e8315195d72a20ed9985f9d46d88ce25afa30b /src/bin/pg_basebackup/streamutil.c
parent72155b29a864d3621795f6cd1528d8e54cc3c671 (diff)
downloadpostgresql-77f93cb32d8711926b07030c1c73a57a7bc66911.tar.gz
postgresql-77f93cb32d8711926b07030c1c73a57a7bc66911.zip
Add missing PQfinish() calls
Fujii Masao
Diffstat (limited to 'src/bin/pg_basebackup/streamutil.c')
-rw-r--r--src/bin/pg_basebackup/streamutil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/pg_basebackup/streamutil.c b/src/bin/pg_basebackup/streamutil.c
index 0de6f54e415..cc015370ff6 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);
}