diff options
author | David Rowley <drowley@postgresql.org> | 2023-10-05 20:31:25 +1300 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2023-10-05 20:31:25 +1300 |
commit | 31b2b2d72d9c50be415c6340ebf4ad83a472590c (patch) | |
tree | 35db3db17b22b56654afe9b6775c388400f3d427 /src/backend/optimizer/util/pathnode.c | |
parent | 75f31a3f26744ca71a4214d4ab0c7f6cac4a0421 (diff) | |
download | postgresql-31b2b2d72d9c50be415c6340ebf4ad83a472590c.tar.gz postgresql-31b2b2d72d9c50be415c6340ebf4ad83a472590c.zip |
Fix memory leak in Memoize code
Ensure we switch to the per-tuple memory context to prevent any memory
leaks of detoasted Datums in MemoizeHash_hash() and MemoizeHash_equal().
Reported-by: Orlov Aleksej
Author: Orlov Aleksej, David Rowley
Discussion: https://postgr.es/m/83281eed63c74e4f940317186372abfd%40cft.ru
Backpatch-through: 14, where Memoize was added
Diffstat (limited to 'src/backend/optimizer/util/pathnode.c')
0 files changed, 0 insertions, 0 deletions