aboutsummaryrefslogtreecommitdiff
path: root/src/common/jsonapi.c
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2024-05-14 10:41:32 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2024-05-14 10:41:32 +0200
commitb362d14816699ed05c47355dcb20bbe46f350b86 (patch)
tree8950ae0154081277caa1a393b36fef9ca9eecb75 /src/common/jsonapi.c
parentab4d7a38c36dba3997e9b585448837ccf6384aed (diff)
downloadpostgresql-b362d14816699ed05c47355dcb20bbe46f350b86.tar.gz
postgresql-b362d14816699ed05c47355dcb20bbe46f350b86.zip
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
Diffstat (limited to 'src/common/jsonapi.c')
0 files changed, 0 insertions, 0 deletions