Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o22bt-00068t-KN for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jun 2022 03:25:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o22br-0007At-Q4 for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jun 2022 03:25:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o22bp-00077t-Te for pgsql-hackers@lists.postgresql.org; Fri, 17 Jun 2022 03:25:23 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o22bm-0004cf-9Q for pgsql-hackers@postgresql.org; Fri, 17 Jun 2022 03:25:21 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 1F0703200945; Thu, 16 Jun 2022 23:25:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 16 Jun 2022 23:25:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1655436313; x=1655522713; bh=Cef0O3IN07 Rms2fXdFjAejfbdO3tcu7JqPVLnOFwajA=; b=Lej2/b8FT4ts/GN33VhGBGr+9D ua5tRjv1owF/v34W/ggC4icHskjmtQL3Bb/5b63v17Ib5E3FuYR6xdHc02xA8xGw G5/3SFAo8/dMiAGv/H6fUGCvpj+fboREcb9BDt8GQk4u7qc4Miz5ehLk7a9Qi7vp iUYdIjDwBkTe75ciEwufnyI29uU5RHUmVh5zRt4g8Jo5kMBHb3xXF4fSjl/uDGYJ yheoVZ4MwyDkrwEw6GpxYtEmvJC9g7gBCv9HP3F9AQSglJvZnGhNSwDTQtobvpdb Tx+qClRd8RrtX/bZdG0Dt9ZT4ZnRAqr19ILoCnLe5xQ1+MJH+gnhbATmHAUA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1655436313; x=1655522713; bh=Cef0O3IN07Rms2fXdFjAejfbdO3t cu7JqPVLnOFwajA=; b=h2793Dbw6vSLcPAHhyRxftzkVb7LXFcJI40ROBhHgbe+ 4COKvxcU61b3tMK3eQL3+FT3xv1/J0rhJqAyJqBqq6UkSqIa5utcjE8LyGOHOLXU y4leEZyi1WmapJJ2Y2Gi5e4SwoDdSEOnHxt48Gx1Iw9BZrtbg7XF3Xdimtb6Az8Q tChlDgVRSTFsKu06UBy86yGdTgGSZy+fzQt8xxFdor0shHFBfiPOdeO+y3SFvGXs ANMNlbY3xzmi6YZE/DjhZAJXeZf6WRctuuhiQBueHymMqVcdNc5aS9Yd1jToPGnY 8htJsny8pr68fLAtRSD3nft9LmlfGqYxlekNgWh78A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvgedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Jun 2022 23:25:12 -0400 (EDT) Date: Fri, 17 Jun 2022 12:25:07 +0900 From: Michael Paquier To: Peter Eisentraut Cc: pgsql-hackers Subject: Re: libpq: Remove redundant null pointer checks before free() Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="srZiS/7YyHNITNKI" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --srZiS/7YyHNITNKI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 16, 2022 at 10:07:33PM +0200, Peter Eisentraut wrote: > calls, where the "if" part is unnecessary. This is of course pretty > harmless, but some functions like scram_free() and freePGconn() have beco= me > so bulky that it becomes annoying. So while I was doing some work in that > area I undertook to simplify this. Seems fine. Would some of the buildfarm dinosaurs hiccup on that? gaur is one that comes into mind.=20 -- Michael --srZiS/7YyHNITNKI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmKr9BMACgkQnvQgOdby QH3nDQ/+ON/VbmK1MJHpmGXm1H4fLALTT4uVz/IZ1vmKO7Bd6do6r0++wk9M30qX E2gnZHrf0pi8n7L/4SLMbaZinRiZkOgUZLpEX45fVJ885ifkH+j0MS8GpvuuYElA otPPGtelvWdqkDLDntwLd6xPA3qTXZDR82eTyhMyoaxVnS9KPtX/pAw6nvMGj3LI b/UXP2f0ekZQZI18JhgLHTrnCNU3yFpiu+JXAU4RIkl0AM6QIkfqgvIAuQCRqzhU UuavZ+pPqe/h7lL6ht3C7Ozk1KLIsvC3mJIGJaQ4yvvP2qebKyL4XMn+2D2DEfpL G+Bb0XpJYYdnUew94iSWCJJPw5F68GcNNqK0M5fTWOVimBh2CdrgIgXh0kp5nYBY YAnoFcEUrXQOHplYlbfqvUrq4RE6rrmbZMGDqodSJ0vLtzmvsFg3FLu4V1M3WMsl AjsaxXf5EnBq+XFzSUqqGpVkKdM4Pugvt4XGoeyDVX1t6Fx28tuXNhw8ST7Acuy5 AJgC3mRAuTETegrGjABEjI4xCmMI73bdd30zFMsJpYbvW0C171JaEDtA7j3ODluh cssJhhadJxA2HawDhgF4HUtmJcdQAWDo9zLlpprX7p4xnpVH/x5UoghNuOxLxya3 53i3xI34/KI93RYZQTmWDCj9kxsjasus+j/ZA+dPPyAEJIbDDxg= =Rnvk -----END PGP SIGNATURE----- --srZiS/7YyHNITNKI--