pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix memory leaks in error reporting with LOG level
Date: Tue, 14 May 2024 08:44:26 +0000
Message-ID: <E1s6nlq-0008j0-G2@gemulon.postgresql.org> (raw)

Fix memory leaks in error reporting with LOG level

When loglevel is set to LOG, allocated strings used in the error
message would leak. Fix by explicitly pfreeing them.

Author: Ranier Vilela <ranier.vf@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CAEudQAqMeE0AHcOsOzZx51Z0eiFJAjhBPRFt+Bxi3ETXWen7ig@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b362d14816699ed05c47355dcb20bbe46f350b86

Modified Files
--------------
src/backend/archive/shell_archive.c  | 2 ++
src/backend/libpq/be-secure-common.c | 6 +++++-
2 files changed, 7 insertions(+), 1 deletion(-)



Message-ID: <E1s6nlq-0008j0-G2@gemulon.postgresql.org>
Permalink:  ../E1s6nlq-0008j0-G2@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1s6nlq-0008j0-G2@gemulon.postgresql.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: dgustafsson@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix memory leaks in error reporting with LOG level
  In-Reply-To: <E1s6nlq-0008j0-G2@gemulon.postgresql.org>

* 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