pgsql: Plug some trivial memory leaks in pg_dump and pg_upgrade.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Plug some trivial memory leaks in pg_dump and pg_upgrade.
Date: 2015-07-02 18:11:48
Message-ID: E1ZAixg-00009X-Ea@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Plug some trivial memory leaks in pg_dump and pg_upgrade.

There's no point in trying to free every small allocation in these
programs that are used in a one-shot fashion, but these ones seems like
an improvement on readability grounds.

Michael Paquier, per Coverity report.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f712289ffad7c3fb6eb3be4f81adb0aa0981c9f7

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 28 ++++++++++++++++------------
src/bin/pg_dump/pg_dumpall.c | 7 +++++++
src/bin/pg_upgrade/check.c | 6 ++++++
3 files changed, 29 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2015-07-02 18:22:20 pgsql: Remove obsolete heap_formtuple/modifytuple/deformtuple functions
Previous Message Joe Conway 2015-07-02 16:47:09 pgsql: Whitespace fix - replace tab with spaces in CREATE TABLE command