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.bonne...@datadoghq.com>
Discussion: 
https://postgr.es/m/cao6_xqqfvqjljzqil7xdwlpzzey1gho_jwvcfpm_omwf9s7...@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(+)

Reply via email to