pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Fix multiple bugs and infelicities in pg_rewind.
Date: Sun, 12 Apr 2015 22:48:02 +0300
Message-ID: <552ACBF2.6090502@iki.fi> (raw)
In-Reply-To: <CAB7nPqQYr8jsxOuBeU-8vYY_HxHHoJwcqCTyH3txya1=G+TDUQ@mail.gmail.com>
References: <E1YcN9n-0007YE-9m@gemulon.postgresql.org>
	<CAB7nPqQYr8jsxOuBeU-8vYY_HxHHoJwcqCTyH3txya1=G+TDUQ@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (3+ messages)

Message-ID: <552ACBF2.6090502@iki.fi>
Permalink:  ../552ACBF2.6090502@iki.fi/
Also on:    postgresql.org/message-id/552ACBF2.6090502@iki.fi

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: hlinnaka@iki.fi, michael.paquier@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix multiple bugs and infelicities in pg_rewind.
  In-Reply-To: <552ACBF2.6090502@iki.fi>
  References: <E1YcN9n-0007YE-9m@gemulon.postgresql.org> <CAB7nPqQYr8jsxOuBeU-8vYY_HxHHoJwcqCTyH3txya1=G+TDUQ@mail.gmail.com> <552ACBF2.6090502@iki.fi>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox