Fix minor leak in pg_dump for ACCESS METHOD.
Bug reported by Coverity.
Author: Michaƫl Paquier
Branch
--
master
Details
---
http://git.postgresql.org/pg/commitdiff/37732a2555f109b09b7eedfc44a9de22e22268a4
Modified Files
--
src/bin/pg_dump/pg_dump.c | 3 ++-
1 file changed, 2
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 sc