Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YhNrY-0001zZ-11 for pgsql-committers@arkaria.postgresql.org; Sun, 12 Apr 2015 19:48:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YhNrX-0000wW-GF for pgsql-committers@arkaria.postgresql.org; Sun, 12 Apr 2015 19:48:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YhNrW-0000us-Fy for pgsql-committers@postgresql.org; Sun, 12 Apr 2015 19:48:10 +0000 Received: from mail-wg0-x235.google.com ([2a00:1450:400c:c00::235]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YhNrS-0002Gk-Fa for pgsql-committers@postgresql.org; Sun, 12 Apr 2015 19:48:09 +0000 Received: by wgsk9 with SMTP id k9so61599382wgs.3 for ; Sun, 12 Apr 2015 12:48:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=5+cWizCKQHD22QzSuTXHqYOWeRQjZ+p1GN2UdROW4cA=; b=FxJC5dGd2Rk2MXItTnK3wANyqNGHxGkuc0rPm5MUito2fvtgbHHZoklaCcQXzPal/R M3G9sGdG01WF2RJlbYHE8393YiUZs9TA/V1my2DSnzltWgtBeg2t9qYQd4dL23KhE5jB RwcBgbrek5qnWZqnTvK8vemKcO9c/pXLwe0i5VBFbJZ+QctU62yt0XVaqgb5nRG9dMMX 2qJ/1K+5iH3/D8qAEKdPxo9SNxvAhQWbMtBYptmztkQkMHe0Fl8wVf7PEhwhNp6FZ/U5 pGFWTAl7O5/3kD2eiaHyRmwObSAmKa67C7U1vcopY3Yds9qx8RnQ+WwkCzx06TLuCA+w eX7A== X-Received: by 10.194.187.41 with SMTP id fp9mr21503853wjc.58.1428868085244; Sun, 12 Apr 2015 12:48:05 -0700 (PDT) Received: from [192.168.1.99] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by mx.google.com with ESMTPSA id o6sm3470398wiz.24.2015.04.12.12.48.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Apr 2015 12:48:04 -0700 (PDT) Message-ID: <552ACBF2.6090502@iki.fi> Date: Sun, 12 Apr 2015 22:48:02 +0300 From: Heikki Linnakangas Reply-To: hlinnaka@iki.fi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.5.0 MIME-Version: 1.0 To: Michael Paquier CC: Tom Lane , pgsql-committers@postgresql.org Subject: Re: pgsql: Fix multiple bugs and infelicities in pg_rewind. References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 04/12/2015 11:46 AM, Michael Paquier wrote: > On Mon, Mar 30, 2015 at 9:02 AM, Tom Lane 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