aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/pgstatfuncs.c
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2024-12-11 12:48:22 +0100
committerDaniel Gustafsson <dgustafsson@postgresql.org>2024-12-11 12:48:22 +0100
commit0e033f5b6de569e712d5f94b77878b8ffacf6397 (patch)
treebc8ac0d5ed6da39d579f5c078636221b31c02841 /src/backend/utils/adt/pgstatfuncs.c
parent9df2a4b9316fae76477187bb2b64197169f5c346 (diff)
downloadpostgresql-0e033f5b6de569e712d5f94b77878b8ffacf6397.tar.gz
postgresql-0e033f5b6de569e712d5f94b77878b8ffacf6397.zip
Fix a memory leak in dumping functions with TRANSFORMs
The gneration of the dump clause for functions with TRANSFORM calls would leak the memory for holding the result of the Oid array parsing. Fix by freeing. While in there, switch to using pg_malloc instead of palloc in order to be consistent with the rest of the file. Author: Oleg Tselebrovskiy <o.tselebrovskiy@postgrespro.ru> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/baf1ae4511288e5b421f41e79a3df1a0@postgrespro.ru
Diffstat (limited to 'src/backend/utils/adt/pgstatfuncs.c')
0 files changed, 0 insertions, 0 deletions