Skip to content
Snippets Groups Projects
Commit fa54cd04 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Add PQclear() calls, for completeness (exits shortly anyway).

parent 21e343da
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/bin/scripts/createdb.c,v 1.18 2006/05/28 21:13:54 tgl Exp $ * $PostgreSQL: pgsql/src/bin/scripts/createdb.c,v 1.19 2006/05/29 19:52:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -201,6 +201,7 @@ main(int argc, char *argv[]) ...@@ -201,6 +201,7 @@ main(int argc, char *argv[])
exit(1); exit(1);
} }
PQclear(result);
PQfinish(conn); PQfinish(conn);
if (!quiet) if (!quiet)
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.22 2006/03/05 15:58:52 momjian Exp $ * $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.23 2006/05/29 19:52:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -191,6 +191,7 @@ main(int argc, char *argv[]) ...@@ -191,6 +191,7 @@ main(int argc, char *argv[])
exit(1); exit(1);
} }
PQclear(result);
PQfinish(conn); PQfinish(conn);
exit(0); exit(0);
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.29 2006/05/28 21:13:54 tgl Exp $ * $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.30 2006/05/29 19:52:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -302,6 +302,7 @@ main(int argc, char *argv[]) ...@@ -302,6 +302,7 @@ main(int argc, char *argv[])
exit(1); exit(1);
} }
PQclear(result);
PQfinish(conn); PQfinish(conn);
if (!quiet) if (!quiet)
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/bin/scripts/dropdb.c,v 1.16 2006/03/05 15:58:52 momjian Exp $ * $PostgreSQL: pgsql/src/bin/scripts/dropdb.c,v 1.17 2006/05/29 19:52:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -131,6 +131,7 @@ main(int argc, char *argv[]) ...@@ -131,6 +131,7 @@ main(int argc, char *argv[])
exit(1); exit(1);
} }
PQclear(result);
PQfinish(conn); PQfinish(conn);
if (!quiet) if (!quiet)
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.19 2006/03/05 15:58:52 momjian Exp $ * $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.20 2006/05/29 19:52:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -309,6 +309,7 @@ main(int argc, char *argv[]) ...@@ -309,6 +309,7 @@ main(int argc, char *argv[])
exit(1); exit(1);
} }
PQclear(result);
PQfinish(conn); PQfinish(conn);
exit(0); exit(0);
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/bin/scripts/dropuser.c,v 1.17 2006/03/05 15:58:52 momjian Exp $ * $PostgreSQL: pgsql/src/bin/scripts/dropuser.c,v 1.18 2006/05/29 19:52:46 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -130,6 +130,7 @@ main(int argc, char *argv[]) ...@@ -130,6 +130,7 @@ main(int argc, char *argv[])
exit(1); exit(1);
} }
PQclear(result);
PQfinish(conn); PQfinish(conn);
if (!quiet) if (!quiet)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment