pgsql: pg_dump: Fix some minor memory leaks

Started by Peter Eisentrautover 14 years ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

pg_dump: Fix some minor memory leaks

Although we often don't care about freeing all memory in pg_dump,
these functions already freed the same memory in other code paths, so
we might as well do it consistently.

found by Coverity

Branch
------
master

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

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 30 +++++++++++++++++++++---------
src/bin/pg_dump/pg_dumpall.c | 7 ++++++-
2 files changed, 27 insertions(+), 10 deletions(-)