pgsql: Fix memory leak in new GUC check_hook
pgsql: Fix memory leak in new GUC check_hook
От:
Álvaro Herrera <alvherre@kurilemu.de>
Дата:
Fix memory leak in new GUC check_hook Commit 38e0190ced71 forgot to pfree() an allocation (freed in other places of the same function) in only one of several spots in check_log_min_messages(). Per Coverity. Add that. While at it, avoid open-coding guc_strdup(). The new coding does a strlen() that wasn't there before, but I doubt it's measurable. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/661237056b3ad92af40bc674459152d5ea0a58bb Modified Files -------------- src/backend/utils/error/elog.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)