Fix memory and file descriptor leaks in pg_receivexlog/pg_basebackup
Magnus Hagander <magnus@hagander.net>
Fix memory and file descriptor leaks in pg_receivexlog/pg_basebackup When the internal loop mode was added, freeing memory and closing filedescriptors before returning became important, and a few cases in the code missed that. Fujii Masao
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_basebackup/receivelog.c | modified | +39 −19 |
| src/bin/pg_basebackup/streamutil.c | modified | +15 −1 |