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

From Magnus Hagander
Subject pgsql: Fix memory and file descriptor leaks in pg_receivexlog/pg_baseba
Date
Msg-id E1SpHft-0003lJ-HE@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.

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


pgsql-committers by date:

Previous
From: hinoue@pgfoundry.org (User Hinoue)
Date:
Subject: psqlodbc - psqlodbc: Fix the bug which causes a segfault in
Next
From: h-saito@pgfoundry.org (Hiroshi Saito)
Date:
Subject: psqlodbc - psqlodbc: follow of fixed.