Commit 77f93cb3 authored by Magnus Hagander's avatar Magnus Hagander

Add missing PQfinish() calls

Fujii Masao
parent 72155b29
...@@ -167,6 +167,7 @@ GetConnection(void) ...@@ -167,6 +167,7 @@ GetConnection(void)
{ {
fprintf(stderr, _("%s: could not determine server setting for integer_datetimes\n"), fprintf(stderr, _("%s: could not determine server setting for integer_datetimes\n"),
progname); progname);
PQfinish(tmpconn);
exit(1); exit(1);
} }
...@@ -178,6 +179,7 @@ GetConnection(void) ...@@ -178,6 +179,7 @@ GetConnection(void)
{ {
fprintf(stderr, _("%s: integer_datetimes compile flag does not match server\n"), fprintf(stderr, _("%s: integer_datetimes compile flag does not match server\n"),
progname); progname);
PQfinish(tmpconn);
exit(1); exit(1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment