Skip site navigation (1) Skip section navigation (2)

pgsql: pg_dump: Fix some minor memory leaks

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pg_dump: Fix some minor memory leaks
Date: 2012-03-14 20:51:40
Message-ID: (view raw or whole thread)
Lists: pgsql-committers
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



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(-)

pgsql-committers by date

Next:From: Peter EisentrautDate: 2012-03-14 21:05:28
Subject: pgsql: Improve EncodeDateTime and EncodeTimeOnly APIs
Previous:From: Tom LaneDate: 2012-03-13 19:26:56
Subject: pgsql: Patch some corner-case bugs in pl/python.

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group