Fix minor leak in pg_dump
authorStephen Frost <sfrost@snowman.net>
Sun, 26 Jan 2014 22:58:48 +0000 (17:58 -0500)
committerStephen Frost <sfrost@snowman.net>
Sun, 26 Jan 2014 22:58:48 +0000 (17:58 -0500)
commit152d24f5ddbc535bb437b57856fa3c7c5c630472
tree1742557ac3a5dbc7cb400af83e6a87b47c8ab39f
parenta7e5f7bf6890fdf14a6c6ecd0854ac3f5f308ccd
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.
src/bin/pg_dump/pg_dump.c