pgsql: Fix very minor memory leaks in psql's command.c.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix very minor memory leaks in psql's command.c.
Date: 2017-07-27 15:10:48
Message-ID: E1dakR6-0001nH-Bg@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix very minor memory leaks in psql's command.c.

\drds leaked its second pattern argument if any, and \connect leaked
any empty-string or "-" arguments. These are old bugs, but it's hard
to imagine any real use-case where the leaks could amount to anything
meaningful, so not bothering with a back-patch.

Daniel Gustafsson and Tom Lane

Discussion: https://postgr.es/m/3641F19B-336A-431A-86CE-A80562505C5E@yesql.se

Branch
------
master

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

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-07-27 17:31:08 pgsql: Sync listDbRoleSettings() with the rest of the world.
Previous Message Andrew Dunstan 2017-07-27 02:49:32 pgsql: Work around Msys weakness in Testlib.pm's command_like()