pgsql: Fix minor leak in pg_dump

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix minor leak in pg_dump
Date: 2014-01-26 23:00:19
Message-ID: E1W7Ygd-0002UY-LM@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix minor leak in pg_dump

Move allocation to after we check the remote server version, to avoid
a possible, very minor, memory leak. This makes us more consistent
throughout as most places in pg_dump are done in the same way (due, in
part, to previous fixes like this).

Spotted by the Coverity scanner.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/152d24f5ddbc535bb437b57856fa3c7c5c630472

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2014-01-27 03:28:57 pgsql: Fix typos in comments for ALTER SYSTEM.
Previous Message Andrew Dunstan 2014-01-26 22:04:59 pgsql: Provide for client-only installs with MSVC.