projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ee75e3
)
pg_amcheck: PQclear query results
author
Daniel Gustafsson
<
[email protected]
>
Mon, 24 Feb 2025 15:03:19 +0000
(16:03 +0100)
committer
Daniel Gustafsson
<
[email protected]
>
Mon, 24 Feb 2025 15:03:19 +0000
(16:03 +0100)
While the potential memory leak is small, ensure to PQclear the query
results before disconnecting.
Author: Jiao Shuntian <
312199339
@qq.com>
Reviewed-by: Daniel Gustafsson <
[email protected]
>
Discussion: https://postgr.es/m/
[email protected]
src/bin/pg_amcheck/pg_amcheck.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_amcheck/pg_amcheck.c
b/src/bin/pg_amcheck/pg_amcheck.c
index c5ec25be22bea16c0080c1f75572bbb67f0a4d10..996833ed400c38bf445f043ebad26554dd744a10 100644
(file)
--- a/
src/bin/pg_amcheck/pg_amcheck.c
+++ b/
src/bin/pg_amcheck/pg_amcheck.c
@@
-587,6
+587,7
@@
main(int argc, char *argv[])
/* Querying the catalog succeeded, but amcheck is missing. */
pg_log_warning("skipping database \"%s\": amcheck is not installed",
PQdb(conn));
+ PQclear(result);
disconnectDatabase(conn);
conn = NULL;
continue;