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

Started by Magnus Haganderabout 14 years ago1 messagescomitters
Jump to latest
#1Magnus 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

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(-)