Fix minor memory leaks in pg_dump.
authorTom Lane
Wed, 12 Feb 2025 20:46:31 +0000 (15:46 -0500)
committerTom Lane
Wed, 12 Feb 2025 20:46:31 +0000 (15:46 -0500)
commitfcd77a6873018c06a34761b7be0c0d1fd847fdd5
treecd4d42334c85c33c8be000cd1300e098210a79f9
parentc45963c5d5cc0a3b8739ba158f781452a3fd89c5
Fix minor memory leaks in pg_dump.

Coverity reported the two oversights in getPublicationTables.
Valgrind found the one in determineNotNullFlags.

The mistakes in getPublicationTables seem too minor to be worth
back-patching.  determineNotNullFlags could be run enough times
to matter, but that code is new in v18.  So, no back-patch.
src/bin/pg_dump/pg_dump.c