pgsql: Fix memory leak in Memoize code

Поиск
Список
Период
Сортировка
От David Rowley
Тема pgsql: Fix memory leak in Memoize code
Дата
Msg-id E1qoIq6-0007d8-6u@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/689af6db6c76a7966efdb702326f85fa0d8a04ef

Modified Files
--------------
src/backend/executor/nodeMemoize.c | 25 ++++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: pgsql: Fix memory leak in Memoize code
Следующее
От: David Rowley
Дата:
Сообщение: pgsql: Fix memory leak in Memoize code