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

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Ranier Vilela <ranier.vf@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2024-05-14T06:03:22Z
Lists: pgsql-hackers
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.
--
Michael

Commits

  1. Fix memory leaks in error reporting with LOG level