Plug some trivial memory leaks in pg_dump and pg_upgrade.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Plug some trivial memory leaks in pg_dump and pg_upgrade. There's no point in trying to free every small allocation in these programs that are used in a one-shot fashion, but these ones seems like an improvement on readability grounds. Michael Paquier, per Coverity report.
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_dump/pg_dumpall.c | modified | +7 −0 |
| src/bin/pg_dump/pg_dump.c | modified | +16 −12 |
| src/bin/pg_upgrade/check.c | modified | +6 −0 |