Fix a couple of memory leaks in src/bin/pg_basebackup/
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_basebackup/receivelog.c | modified | +7 −0 |
| src/bin/pg_basebackup/walmethods.c | modified | +7 −0 |
| src/bin/pg_basebackup/walmethods.h | modified | +2 −2 |