pgsql: Fix minor leak in pg_dump - Mailing list pgsql-committers

From Stephen Frost
Subject pgsql: Fix minor leak in pg_dump
Date
Msg-id E1W7Ygd-0002UY-LM@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: pgsql: Provide for client-only installs with MSVC.
Next
From: Fujii Masao
Date:
Subject: pgsql: Fix typos in comments for ALTER SYSTEM.