Re: pgsql: Fix multiple bugs and infelicities in pg_rewind. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject Re: pgsql: Fix multiple bugs and infelicities in pg_rewind.
Date
Msg-id 552ACBF2.6090502@iki.fi
Whole thread Raw
In response to Re: pgsql: Fix multiple bugs and infelicities in pg_rewind.  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-committers
On 04/12/2015 11:46 AM, Michael Paquier wrote:
> On Mon, Mar 30, 2015 at 9:02 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Fix multiple bugs and infelicities in pg_rewind.
>>
>> Bugs all spotted by Coverity, including wrong realloc() size request
>> and memory leaks.  Cosmetic improvements by me.
>>
>> The usage of the global variable "filemap" here is still pretty awful,
>> but at least I got rid of the gratuitous aliasing in several routines
>> (which was helping to annoy Coverity, as well as being a bug risk).
>
> Coverity points out that a call to PQclear() in receiveFileChunks of
> libpq_fetch.c is missing as the result still leaks resources when
> status is PGRES_TUPLES_OK. Please see the patch attached.

Applied, thanks.

- Heikki



pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Free leaked result set in pg_rewind
Next
From: Peter Eisentraut
Date:
Subject: pgsql: emacs: Set indent-tabs-mode in perl-mode