From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Junwang Zhao <zhjwpku@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: [PATCH v1] fix potential memory leak in untransformRelOptions
Date: Tue, 13 Sep 2022 12:01:47 +0200
Message-ID: <20220913100147.zm322p3c2qquru7c@alvherre.pgsql> (raw)
In-Reply-To: <20220909142050.3vv2hjekppk265dd@alvherre.pgsql>
On 2022-Sep-09, Alvaro Herrera wrote:
> Keeping 's' and removing the pstrdups better uses memory, because we
> have a single palloc'ed chunk per option rather than two.
Pushed. This is pretty much cosmetic, so no backpatch.
--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/
"The Gord often wonders why people threaten never to come back after they've
been told never to return" (www.actsofgord.com)
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-hackers@postgresql.org
Cc: alvherre@alvh.no-ip.org, tgl@sss.pgh.pa.us, zhjwpku@gmail.com
Subject: Re: [PATCH v1] fix potential memory leak in untransformRelOptions
In-Reply-To: <20220913100147.zm322p3c2qquru7c@alvherre.pgsql>
References: <20220909142050.3vv2hjekppk265dd@alvherre.pgsql> <20220913100147.zm322p3c2qquru7c@alvherre.pgsql>
* 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