Re: Fix memory leak in postmasterMain - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Fix memory leak in postmasterMain
Date
Msg-id aenNxsSzrfbkUBlY@paquier.xyz
Whole thread
In response to Re: Fix memory leak in postmasterMain  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Wed, Apr 22, 2026 at 01:55:36PM -0400, Andres Freund wrote:
> If we do it, we should actually be a bit more systematic and also free
> output_config_variable.
>
> ISTM those strdup()s should actually be pstrdup()s?  I suspect changing that
> would also silence valgrind.

I don't see immediately why it would not be OK to maintain this data
in the postmaster context.  There is no need to rush this change on
HEAD, IMO, I'd suggest to leave that as a v20 item..
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: SATYANARAYANA NARLAPURAM
Date:
Subject: Re: [Patch] Block ALTER TABLE RENAME COLUMN when column is used by property graph
Next
From: Daniel Gustafsson
Date:
Subject: Re: Adding an explaining title to Notes on SGML