| From: | Daniel Gustafsson <dgustafsson(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix memory leaks in error reporting with LOG level |
| Date: | 2024-05-14 08:44:26 |
| Message-ID: | E1s6nlq-0008j0-G2@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(dot)vf(at)gmail(dot)com>
Reviewed-by: Daniel Gustafsson <daniel(at)yesql(dot)se>
Reviewed-by: Michael Paquier <michael(at)paquier(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Gustafsson | 2024-05-14 09:11:49 | pgsql: Remove auth-options support from initdb |
| Previous Message | Peter Eisentraut | 2024-05-14 08:39:36 | Re: pgsql: Fix overread in JSON parsing errors for incomplete byte sequence |