diff options
author | David Rowley <drowley@postgresql.org> | 2023-10-05 20:31:51 +1300 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2023-10-05 20:31:51 +1300 |
commit | 689af6db6c76a7966efdb702326f85fa0d8a04ef (patch) | |
tree | 9130dbb5ade8d6a2e2774c62d310c4543dbfe04c /src/backend/executor/nodeFunctionscan.c | |
parent | 95e91da66cf5bbaf46c34c9386c93004f28d6719 (diff) | |
download | postgresql-689af6db6c76a7966efdb702326f85fa0d8a04ef.tar.gz postgresql-689af6db6c76a7966efdb702326f85fa0d8a04ef.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/executor/nodeFunctionscan.c')
0 files changed, 0 insertions, 0 deletions