Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 77f93cb

Browse files
committed
Add missing PQfinish() calls
Fujii Masao
1 parent 72155b2 commit 77f93cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bin/pg_basebackup/streamutil.c

+2
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ GetConnection(void)
167167
{
168168
fprintf(stderr, _("%s: could not determine server setting for integer_datetimes\n"),
169169
progname);
170+
PQfinish(tmpconn);
170171
exit(1);
171172
}
172173

@@ -178,6 +179,7 @@ GetConnection(void)
178179
{
179180
fprintf(stderr, _("%s: integer_datetimes compile flag does not match server\n"),
180181
progname);
182+
PQfinish(tmpconn);
181183
exit(1);
182184
}
183185

0 commit comments

Comments
 (0)