aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-05-29 19:52:46 +0000
committerBruce Momjian <bruce@momjian.us>2006-05-29 19:52:46 +0000
commitfa54cd043248b91d9363ab548e737217f6271198 (patch)
treea8d0b0a704aa56e8b20fbb4f23c1fcd6337f561f /src
parent21e343da35779c622a71fd798d740c4af1d1d915 (diff)
downloadpostgresql-fa54cd043248b91d9363ab548e737217f6271198.tar.gz
postgresql-fa54cd043248b91d9363ab548e737217f6271198.zip
Add PQclear() calls, for completeness (exits shortly anyway).
Diffstat (limited to 'src')
-rw-r--r--src/bin/scripts/createdb.c3
-rw-r--r--src/bin/scripts/createlang.c3
-rw-r--r--src/bin/scripts/createuser.c3
-rw-r--r--src/bin/scripts/dropdb.c3
-rw-r--r--src/bin/scripts/droplang.c3
-rw-r--r--src/bin/scripts/dropuser.c3
6 files changed, 12 insertions, 6 deletions
diff --git a/src/bin/scripts/createdb.c b/src/bin/scripts/createdb.c
index ec022b12036..f68da36498c 100644
--- a/src/bin/scripts/createdb.c
+++ b/src/bin/scripts/createdb.c
@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* 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[])
exit(1);
}
+ PQclear(result);
PQfinish(conn);
if (!quiet)
{
diff --git a/src/bin/scripts/createlang.c b/src/bin/scripts/createlang.c
index b8d823f4fc4..0a299910bd3 100644
--- a/src/bin/scripts/createlang.c
+++ b/src/bin/scripts/createlang.c
@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* 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[])
exit(1);
}
+ PQclear(result);
PQfinish(conn);
exit(0);
}
diff --git a/src/bin/scripts/createuser.c b/src/bin/scripts/createuser.c
index e4afdfb40ba..bf618eea186 100644
--- a/src/bin/scripts/createuser.c
+++ b/src/bin/scripts/createuser.c
@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* 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[])
exit(1);
}
+ PQclear(result);
PQfinish(conn);
if (!quiet)
{
diff --git a/src/bin/scripts/dropdb.c b/src/bin/scripts/dropdb.c
index 2908e893189..8769dcb94cc 100644
--- a/src/bin/scripts/dropdb.c
+++ b/src/bin/scripts/dropdb.c
@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* 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[])
exit(1);
}
+ PQclear(result);
PQfinish(conn);
if (!quiet)
{
diff --git a/src/bin/scripts/droplang.c b/src/bin/scripts/droplang.c
index 998d7437970..1465e504f61 100644
--- a/src/bin/scripts/droplang.c
+++ b/src/bin/scripts/droplang.c
@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* 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[])
exit(1);
}
+ PQclear(result);
PQfinish(conn);
exit(0);
}
diff --git a/src/bin/scripts/dropuser.c b/src/bin/scripts/dropuser.c
index 49e63cbb285..5d083caef53 100644
--- a/src/bin/scripts/dropuser.c
+++ b/src/bin/scripts/dropuser.c
@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* 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[])
exit(1);
}
+ PQclear(result);
PQfinish(conn);
if (!quiet)
{