pgsql: pg_dump: Fix minor memory leak

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pg_dump: Fix minor memory leak
Date: 2017-01-23 13:29:22
Message-ID: E1cVegU-00078u-Ch@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_dump: Fix minor memory leak

Missing a destroyPQExpBuffer() in the early exit branch. The early
exits aren't really necessary. Most similar functions just proceed
running the rest of the code zero times and clean up at the end.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/366d2a3d8808ad92436a830c32e73ce17affe5b6

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 18 ------------------
1 file changed, 18 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-01-23 14:15:56 pgsql: Volatile-ize some plperl variables that must survive into PG_CAT
Previous Message Tom Lane 2017-01-22 19:08:31 pgsql: Relocate static function declarations to be after typedefs in js