]> granicus.if.org Git - postgresql/commit
Minor pg_dump improvements
authorStephen Frost <sfrost@snowman.net>
Sun, 9 Feb 2014 02:25:47 +0000 (21:25 -0500)
committerStephen Frost <sfrost@snowman.net>
Sun, 9 Feb 2014 02:25:47 +0000 (21:25 -0500)
commitcfa1b4a711dd03f824a9c3ab50911e61419d1eeb
treeaf9d3c16f8c15ce562e09a9c97bfe19baf9395b0
parent66c04c981dfe7c1d1e633dddcecf01982d0bde65
Minor pg_dump improvements

Improve pg_dump by checking results on various fgetc() calls which
previously were unchecked, ditto for ftello.  Also clean up a couple
of very minor memory leaks by waiting to allocate structures until
after the initial check(s).

Issues spotted by Coverity.
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_custom.c
src/bin/pg_dump/pg_dump.c