pg_amcheck: PQclear query results
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 24 Feb 2025 15:03:19 +0000 (16:03 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 24 Feb 2025 15:03:19 +0000 (16:03 +0100)
commite889422d98e066dcf095fa275fbcb14ffd45708c
tree1216f911c6271590672b70611de61c9d210f390f
parent5ee75e32fa734e8ae85ff096f1523be8e16e1b8d
pg_amcheck: PQclear query results

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 <daniel@yesql.se>
Discussion: https://postgr.es/m/tencent_F34922C91C41E76C734773E767C9FBDB9906@qq.com
src/bin/pg_amcheck/pg_amcheck.c