Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfa54cd0

Browse files
committed
Add PQclear() calls, for completeness (exits shortly anyway).
1 parent21e343d commitfa54cd0

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

‎src/bin/scripts/createdb.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $PostgreSQL: pgsql/src/bin/scripts/createdb.c,v 1.18 2006/05/28 21:13:54 tgl Exp $
8+
* $PostgreSQL: pgsql/src/bin/scripts/createdb.c,v 1.19 2006/05/29 19:52:46 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -201,6 +201,7 @@ main(int argc, char *argv[])
201201
exit(1);
202202
}
203203

204+
PQclear(result);
204205
PQfinish(conn);
205206
if (!quiet)
206207
{

‎src/bin/scripts/createlang.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.22 2006/03/05 15:58:52 momjian Exp $
8+
* $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.23 2006/05/29 19:52:46 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -191,6 +191,7 @@ main(int argc, char *argv[])
191191
exit(1);
192192
}
193193

194+
PQclear(result);
194195
PQfinish(conn);
195196
exit(0);
196197
}

‎src/bin/scripts/createuser.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.29 2006/05/28 21:13:54 tgl Exp $
8+
* $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.30 2006/05/29 19:52:46 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -302,6 +302,7 @@ main(int argc, char *argv[])
302302
exit(1);
303303
}
304304

305+
PQclear(result);
305306
PQfinish(conn);
306307
if (!quiet)
307308
{

‎src/bin/scripts/dropdb.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $PostgreSQL: pgsql/src/bin/scripts/dropdb.c,v 1.16 2006/03/05 15:58:52 momjian Exp $
8+
* $PostgreSQL: pgsql/src/bin/scripts/dropdb.c,v 1.17 2006/05/29 19:52:46 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -131,6 +131,7 @@ main(int argc, char *argv[])
131131
exit(1);
132132
}
133133

134+
PQclear(result);
134135
PQfinish(conn);
135136
if (!quiet)
136137
{

‎src/bin/scripts/droplang.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.19 2006/03/05 15:58:52 momjian Exp $
8+
* $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.20 2006/05/29 19:52:46 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -309,6 +309,7 @@ main(int argc, char *argv[])
309309
exit(1);
310310
}
311311

312+
PQclear(result);
312313
PQfinish(conn);
313314
exit(0);
314315
}

‎src/bin/scripts/dropuser.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $PostgreSQL: pgsql/src/bin/scripts/dropuser.c,v 1.17 2006/03/05 15:58:52 momjian Exp $
8+
* $PostgreSQL: pgsql/src/bin/scripts/dropuser.c,v 1.18 2006/05/29 19:52:46 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -130,6 +130,7 @@ main(int argc, char *argv[])
130130
exit(1);
131131
}
132132

133+
PQclear(result);
133134
PQfinish(conn);
134135
if (!quiet)
135136
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp