Обсуждение: [PATCH] Fix missing pfree(flags.data) in overexplain_debug

Поиск
Список
Период
Сортировка

[PATCH] Fix missing pfree(flags.data) in overexplain_debug

От
Lakshmi N
Дата:
Hi hackers,

attached a small patch to fix missing  pfree(flags.data) in overexplain_debug. 

Regards,
Lakshmi
Вложения

Re: [PATCH] Fix missing pfree(flags.data) in overexplain_debug

От
Heikki Linnakangas
Дата:
On 13/04/2026 23:33, Lakshmi N wrote:
> Hi hackers,
> 
> attached a small patch to fix missing  pfree(flags.data) in 
> overexplain_debug.

These leaks are to a relatively short-lived memory context. We don't 
need to meticulously pfree() those, they will go away with the memory 
context. There are also numerous psprintf() calls in the function and in 
the subroutines which are not pfreed, for example.

We're not totally consistent, as there are pfree() calls in some of the 
subroutines. I don't know if there's some grand plan on when to pfree() 
and when not to bother, but this one pfree() won't move the needle much 
in any case.

- Heikki