David Rowley e4b95b9b02 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
2023-10-05 20:32:14 +13:00
..
2023-10-05 20:32:14 +13:00
2021-01-02 13:06:25 -05:00
2022-07-11 15:47:12 +12:00
2023-08-07 12:38:55 +02:00
2023-10-02 12:50:32 +03:00
2023-06-16 10:19:33 +09:00
2018-03-30 17:33:04 -07:00
2021-09-20 16:23:13 +02:00