pgsql: pg_amcheck: PQclear query results

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_amcheck: PQclear query results
Date: 2025-02-24 15:20:15
Message-ID: E1tmaFj-000TEB-2E@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_amcheck: PQclear query results

While the potential memory leak is small, ensure to PQclear the query
results before disconnecting.

Author: Jiao Shuntian <312199339(at)qq(dot)com>
Reviewed-by: Daniel Gustafsson <daniel(at)yesql(dot)se>
Discussion: https://postgr.es/m/tencent_F34922C91C41E76C734773E767C9FBDB9906@qq.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e889422d98e066dcf095fa275fbcb14ffd45708c

Modified Files
--------------
src/bin/pg_amcheck/pg_amcheck.c | 1 +
1 file changed, 1 insertion(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2025-02-24 16:07:54 Re: pgsql: Trial fix for old cross-version upgrades.
Previous Message Andres Freund 2025-02-24 11:40:39 pgsql: Add static asserts for MAX_BACKENDS limiting factors