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

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix memory and file descriptor leaks in pg_receivexlog/pg_baseba
Date: 2012-07-12 11:35:13
Message-ID: E1SpHft-0003lJ-HE@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Hiroshi Saito 2012-07-12 12:47:56 psqlodbc - psqlodbc: follow of fixed.
Previous Message Heikki Linnakangas 2012-07-12 09:08:18 Re: Re: [COMMITTERS] pgsql: Fix mapping of PostgreSQL encodings to Python encodings.