Fix a couple of memory leaks in src/bin/pg_basebackup/
authorMichael Paquier <michael@paquier.xyz>
Mon, 26 Jul 2021 02:13:37 +0000 (11:13 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 26 Jul 2021 02:13:37 +0000 (11:13 +0900)
commit4ef64c425dbcda151c9f163aadff982343808e09
tree6f715b4bdb9429e8d21b11b1d2522fd885fe9ff2
parent28d936031a86d94806c6604480ff3f3f169b371c
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