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

Commite889422

Browse files
pg_amcheck: PQclear query results
While the potential memory leak is small, ensure to PQclear the queryresults before disconnecting.Author: Jiao Shuntian <312199339@qq.com>Reviewed-by: Daniel Gustafsson <daniel@yesql.se>Discussion:https://postgr.es/m/tencent_F34922C91C41E76C734773E767C9FBDB9906@qq.com
1 parent5ee75e3 commite889422

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/bin/pg_amcheck/pg_amcheck.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ main(int argc, char *argv[])
587587
/* Querying the catalog succeeded, but amcheck is missing. */
588588
pg_log_warning("skipping database \"%s\": amcheck is not installed",
589589
PQdb(conn));
590+
PQclear(result);
590591
disconnectDatabase(conn);
591592
conn=NULL;
592593
continue;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp