Re: Potential memory leak in contrib/intarray's g_intbig_compress

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Potential memory leak in contrib/intarray's g_intbig_compress
Дата
Msg-id ZLDjyfq9cT4+Vu0u@paquier.xyz
обсуждение исходный текст
Ответ на Re: Potential memory leak in contrib/intarray's g_intbig_compress  (Matthias van de Meent <boekewurm+postgres@gmail.com>)
Ответы Re: Potential memory leak in contrib/intarray's g_intbig_compress  (Matthias van de Meent <boekewurm+postgres@gmail.com>)
Список pgsql-hackers
On Thu, Jul 13, 2023 at 06:28:39PM +0200, Matthias van de Meent wrote:
> There are similar pfree calls in the _int_gist.c file's g_int_compress
> function, which made me think we do need to clean up after use, but
> indeed these pfrees are useless (or even harmful if bug #17888 can be
> trusted)

Indeed, all these are in a GiST temporary context.  So you'd mean
something like the attached perhaps, for both the decompress and
compress paths?
--
Michael

Вложения

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

Предыдущее
От: Martin Butter
Дата:
Сообщение: 16beta2 SQL parser: different defaults on absent_on_null
Следующее
От: Ashutosh Bapat
Дата:
Сообщение: Re: logical decoding and replication of sequences, take 2