pgsql: psql: Fix memory leak with \gx used within a pipeline

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: psql: Fix memory leak with \gx used within a pipeline
Date: 2025-03-04 23:11:37
Message-ID: E1tpbQH-000omJ-0Y@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

psql: Fix memory leak with \gx used within a pipeline

While inside a pipeline, \gx is currently forbidden and will make
exec_command_g() exit early. There was a memory leak in this code path,
so let's fix it.

Author: Anthonin Bonnefoy <anthonin(dot)bonnefoy(at)datadoghq(dot)com>
Discussion: https://postgr.es/m/CAO6_XqqFVQjLjZQiL7xdwLpzZEy1ghO_JWvCFPM_OmwF9s7XdA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/54d23601b978d2552696fb7fe35ae5d6102ea2cb

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

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2025-03-05 01:17:59 pgsql: Fix some gaps in pg_stat_io with WAL receiver and WAL summarizer
Previous Message Tomas Vondra 2025-03-04 19:45:26 pgsql: Enforce memory limit during parallel GIN builds