Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u0ypr-00BdsB-HX for pgsql-committers@arkaria.postgresql.org; Sat, 05 Apr 2025 08:25:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u0ypp-00AiN1-41 for pgsql-committers@arkaria.postgresql.org; Sat, 05 Apr 2025 08:25:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u0ypo-00AiMt-8I for pgsql-committers@lists.postgresql.org; Sat, 05 Apr 2025 08:25:00 +0000 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u0ypm-0034XO-0J for pgsql-committers@lists.postgresql.org; Sat, 05 Apr 2025 08:24:59 +0000 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id DA93C13801DE; Sat, 5 Apr 2025 04:24:56 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Sat, 05 Apr 2025 04:24:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1743841496; x=1743927896; bh=sjLzSXvS4O qB4zX1TIU0gHbWfSRhX7MIY+fZAhZnu2w=; b=McjTc8uLoqKpVr3XfXJWelwm4s CG6BEmSSHgNmzUn77hWQ8NdN2UMHm20litp6YlEY/Zz09SdBeOudtCe6MFfjZWPr 7q1c8Pb2oxOq208CZtCTNVimzc5OoXfAR4XdSxcCACtijBO4DVZ91EB2m1I0ZnQH JpXn9v+gp3vOOYwZG5/9vf3JbyTnb1Nk0078XfZIpx0ZItHaz77Wmivgu7hGL2Aq S+WUYQA1IVeWpbleoXdcilVI/v5tsTARJ/FUU+G8BGrdgRwdqgp7BOK+n2AFNOS2 Gm+e5xE79x1VtWW6E93NgpxXP9+bjOi1dLXPk9hbRPbgVoG2vgceppPsjlSg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1743841496; x=1743927896; bh=sjLzSXvS4OqB4zX1TIU0gHbWfSRhX7MIY+f ZAhZnu2w=; b=tNXq6eUIDv6E8f56cTTDF2RUPdkIlfHfpFpQjlahX6pvaZQN4xS DT7EMNaKqJs46x0B0JZyOOnTpW3FclNmJ7HWB5Lf6PdkXGSjhYKmcFX9NvElPf4U UI2R2b733Vrf2b+VDdpPJxF0NJsNRJLNlxaYKGnoi1tfLxknvelRTtV8B+HGoc15 SiTrr7liackWmYnyp4ReV4c/VMaQtHZlBy8IYN7P5h035MqgK5mK7VsAb+iYSWx3 k6nWyiAW2AlD1BKTjrtaHecffDgVW27BFa8uYxjNYGFrGmJ2tmQKfRUr/jg6CCPF Aewg+1xpflUL0iPbhpkx5dvBz6hhJV+L1Sg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduleefkeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffuc dljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddvnecuhfhrohhm pefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgi ihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeegfffhkeeuveet iefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghp thhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphhgshhqlhesjhdqug grvhhishdrtghomhdprhgtphhtthhopehpghhsqhhlqdgtohhmmhhithhtvghrsheslhhi shhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 5 Apr 2025 04:24:54 -0400 (EDT) Date: Sat, 5 Apr 2025 17:24:41 +0900 From: Michael Paquier To: Jeff Davis Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: pg_upgrade: Fix inconsistency in memory freeing Message-ID: References: <8e540416ec3f0a5850264505bf4c72844d32176a.camel@j-davis.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9nJibBiq3WRq2N5l" Content-Disposition: inline In-Reply-To: <8e540416ec3f0a5850264505bf4c72844d32176a.camel@j-davis.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --9nJibBiq3WRq2N5l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 30, 2025 at 11:12:20AM -0700, Jeff Davis wrote: > Why pg_strdup() the "NULL" at all in that case? Usually I see that done > so that there doesn't need to be a conditional when freeing, but here > there's a conditional anyway. >=20 > Perhaps something like the attached? I am back to a laptop, and just noticed that you have applied f4e51eab4eb0 into the tree to take care of this issue, affecting only HEAD. Why didn't you do a backpatch of this commit down to v16? That's down to where 2a083ab807db has been applied. -- Michael --9nJibBiq3WRq2N5l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmfw6MkACgkQnvQgOdby QH1iMg/+KL0s3FgjDMjKdjEiw+3g2Td1UQ7C5i2H01vro2Hk5CadKiOkurF3Y+rr 5xWxBSp1WtO9fgdEOqPPxZuYJxUoBNIHxel3fsfMF5MKbjxG5HJj8YCpOJVohOjE yvmBml/VJcgHAnkRG6JAJK7fQVwhX5Rl/+jLG2HvvQbnqmWd4fFoAuyw+f23ACB8 nguxXX/zKNdlT+np5FsefvU5x9ql7XnBAl8uZnrath05hhg+wIixFm/W46Ln4j/L fSqA2bxQk81/0o7mYclZQYwnwgnvmn/XFrsDxGcfg5kpIr1OoFsBEm4PQsg0yhr/ N2v3cGuMfTqYaEDXkRo8ZRWSsqE9Sb88RnstrXWg5xgmVsYDl1F+Ax1IynAwvoWb olZFatIpeUyaSrwUegitwpzi9rA5U1sQd+LKhiavmqPUVtDZXuC7KATM0uXOAz3J jqd/TaJF72ZmtMeFUk2fM2s2pHTWpl5Y+FgUGVJCmh/Gd8Mrobw7ef1QGiZDk+7w g3GzYqw9a+EEYlyDjva0iq4e0ZBPIYA72OOrlc5bUnr0QREEJGgFiqtoR5zD9MVT JPecXrESLdgpL1I64lzNpY3yAWx0wUuYdT0j+o22OPS+apg+cw/WBlo0a2EpipOB YW7GGTdivyX0s0VzSTklFbvak2S2BLPA4RGNND6ONlRAKeh0lYg= =yAiK -----END PGP SIGNATURE----- --9nJibBiq3WRq2N5l--