pgsql: Fix memory leaks in error reporting with LOG level

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема pgsql: Fix memory leaks in error reporting with LOG level
Дата
Msg-id E1s6nlq-0008j0-G2@gemulon.postgresql.org
обсуждение исходный текст
Список 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.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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Add missing gettext triggers
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: pgsql: Remove auth-options support from initdb