pgsql: Fix memory and file descriptor leaks in pg_receivexlog/pg_baseba - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Fix memory and file descriptor leaks in pg_receivexlog/pg_baseba
Date
Msg-id E1SwE1M-0004lJ-LX@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

This is a backpatch of commit 058a050e to the 9.2 branch, which seems to
have been neglected (in error, because the bugs it fixes were introduced
in commit 16282ae6 which is present in both master and 9.2).

Fujii Masao

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/776bdc4c5c019a9556a6622a01a406c6c0fec4c9

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


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: Now that the diskchecker.pl author has updated the download link
Next
From: Alvaro Herrera
Date:
Subject: pgsql: pg_basebackup: stylistic adjustments