Re: Fix resource leak (src/backend/libpq/be-secure-common.c)

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Michael Paquier <michael@paquier.xyz>
Cc: Ranier Vilela <ranier.vf@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2024-05-14T10:21:31Z
Lists: pgsql-hackers
> On 14 May 2024, at 08:03, Michael Paquier <michael@paquier.xyz> wrote:
> 
> On Mon, May 13, 2024 at 08:06:57PM +0200, Daniel Gustafsson wrote:
>>> Any chance we'll have these fixes in v17?
>> 
>> Nice timing, I was actually rebasing them today to get them committed.
> 
> Looks sensible seen from here, as these paths could use a LOG or rely
> on a memory context permanent to the backend causing junk to be
> accumulated.  It's not that much, still that would accumulate.

Pushed.

--
Daniel Gustafsson




Commits

  1. Fix memory leaks in error reporting with LOG level