Fix memory leak in Memoize code
David Rowley <drowley@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/nodeMemoize.c | modified | +22 −3 |
Discussion
- [PATCH] Fix memory leak in memoize for numeric key 4 messages · 2023-10-02 → 2023-10-05