Thread: pgsql: Fix memory and file descriptor leaks in pg_receivexlog/pg_baseba

pgsql: Fix memory and file descriptor leaks in pg_receivexlog/pg_baseba

From
Magnus Hagander
Date:
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/058a050ec769fb1431220d822f00b0a442293514

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c |   58 ++++++++++++++++++++++++------------
src/bin/pg_basebackup/streamutil.c |   16 +++++++++-
2 files changed, 54 insertions(+), 20 deletions(-)