Fix a couple of memory leaks in src/bin/pg_basebackup/
authorMichael Paquier <michael@paquier.xyz>
Mon, 26 Jul 2021 02:14:21 +0000 (11:14 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 26 Jul 2021 02:14:21 +0000 (11:14 +0900)
commit4372f0685de164e769e895dbada18cad792192b2
treea912df2b6fa1ae885beef37f1ceec51eeaaa525a
parent710fabfa2e4ec88a357dc36209547948545414c9
Fix a couple of memory leaks in src/bin/pg_basebackup/

These have been introduced by 7fbe0c8, and could happen for
pg_basebackup and pg_receivewal.

Per report from Coverity for the ones in walmethods.c, I have spotted
the ones in receivelog.c after more review.

Backpatch-through: 10
src/bin/pg_basebackup/receivelog.c
src/bin/pg_basebackup/walmethods.c
src/bin/pg_basebackup/walmethods.h