Fix memory leaks in error reporting with LOG level
Daniel Gustafsson <dgustafsson@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/archive/shell_archive.c | modified | +2 −0 |
| src/backend/libpq/be-secure-common.c | modified | +5 −1 |
Discussion
- Fix resource leak (src/backend/libpq/be-secure-common.c) 9 messages · 2024-04-02 → 2024-05-14