Re: Fix tiny memory leaks - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Fix tiny memory leaks
Date
Msg-id 66C551B8-1E5B-478E-81BC-2E224DB096F3@yesql.se
Whole thread Raw
In response to Re: Fix tiny memory leaks  (Masahiko Sawada <sawada.mshk@gmail.com>)
Responses Re: Fix tiny memory leaks
List pgsql-hackers
> On 9 Dec 2024, at 19:52, Masahiko Sawada <sawada.mshk@gmail.com> wrote:
>
> On Fri, Dec 6, 2024 at 12:49 AM Daniel Gustafsson <daniel@yesql.se> wrote:
>>
>>> On 6 Dec 2024, at 09:38, Tofig Aliev <t.aliev@postgrespro.ru> wrote:
>>
>>> There is a memory leak in functions check_application_name() and check_cluster_name().
>>> Functions are located in src/backend/commands/variable.c
>>
>> LGTM.
>
> LGTM. It seems commit a9d58bfe8a3a missed to fix this memory leak.

Yeah.  While fairly insignificant in nature, and there has been no complaints
until now, I'm preparing a backpatch down to REL_15_STABLE to keep the code in
sync for other backpatches to apply clean.

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Fix tiny memory leaks
Next
From: Tom Lane
Date:
Subject: Re: unused-but-set-variable warning on REL_13_STABLE