Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hE6RC-0006QT-Os for pgsql-committers@arkaria.postgresql.org; Wed, 10 Apr 2019 06:10:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hE6RB-0000Iu-Ak for pgsql-committers@arkaria.postgresql.org; Wed, 10 Apr 2019 06:10:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hE6RB-0000Im-49 for pgsql-committers@lists.postgresql.org; Wed, 10 Apr 2019 06:10:21 +0000 Received: from courriel.mines-paristech.fr ([77.158.173.149] helo=antispam-1.ensmp.fr) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hE6R8-0002ro-Fo for pgsql-committers@lists.postgresql.org; Wed, 10 Apr 2019 06:10:20 +0000 Received: from smtp-4.mines-paristech.fr (smtp-4.ensmp.fr [77.158.173.143]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by antispam-1.ensmp.fr (antispam.mines-paristech.fr) with ESMTPS id D79CD55E43; Wed, 10 Apr 2019 08:10:16 +0200 (CEST) Received: from lancre (unknown [212.91.77.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-4.mines-paristech.fr (Postfix) with ESMTPSA id 7D5D22C0246; Wed, 10 Apr 2019 08:10:16 +0200 (CEST) Date: Wed, 10 Apr 2019 08:10:15 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@lancre To: Masahiko Sawada cc: Alvaro Herrera , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix memory leak in pgbench In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1117437074-1554876616=:19300" X-CLAMAV-SCAN: ok X-VRSPAM-SCORE: -100 X-VRSPAM-STATE: legit X-VRSPAM-CAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudeigddutdeiucetufdoteggodetrfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvufgjkfhffgggtgesmhdtreertderjeenucfhrhhomhephfgrsghivghnucevqffgnffjqfcuoegtohgvlhhhohestghrihdrvghnshhmphdrfhhrqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppedvuddvrdeluddrjeejrdekleenucfrrghrrghmpehmohguvgepshhmthhpohhuth X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1117437074-1554876616=:19300 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT Hello Masahiko-san, > This change leads a compiler warning on my machine: > > pgbench.c: In function ‘readCommandResponse’: > pgbench.c:2730: warning: ISO C90 forbids mixed declarations and code says: "Code in PostgreSQL should only rely on language features available in the C99 standard" So it should be all right wrt to warnings. However the pg style in the same page says that intermingling decl & code is not permitted, so the proposed patch should be applied. -- Fabien. --8323329-1117437074-1554876616=:19300--