pgsql: Fix memory leaks in failure paths in buildACLCommands and parseA

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix memory leaks in failure paths in buildACLCommands and parseA
Date: 2012-06-03 15:53:10
Message-ID: E1SbD78-0002Ru-Uu@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix memory leaks in failure paths in buildACLCommands and parseAclItem.

This is currently only cosmetic, since all the call sites just curl up
and die in event of a failure return. It might be important for some
future use-case, though, and in any case it quiets warnings from the
clang static analyzer (as reported by Anna Zaks).

Josh Kupershmidt

Branch
------
master

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

Modified Files
--------------
src/bin/pg_dump/dumputils.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message User Karl 2012-06-04 09:42:05 pgtcl - libpgtcl: Change dbinfo option "pass" to "password".
Previous Message pgsql 2012-06-03 14:42:50 pgsql: Tag refs/tags/REL8_4_12 was created