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

Commit68628fc

Browse files
committed
Fix memory leak introduced in the prior commit, detected by Tom Lane.
1 parent78bfc22 commit68628fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/bin/psql/common.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.120 2006/06/3015:06:05 alvherre Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.121 2006/06/3016:55:35 alvherre Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"common.h"
@@ -910,6 +910,8 @@ SendQuery(const char *query)
910910
ResetCancelConn();
911911
return false;
912912
}
913+
914+
PQclear(svptres);
913915
}
914916

915917
PQclear(results);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp