Re: Fix some memory leaks in ecpg.addons

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fix some memory leaks in ecpg.addons
Дата
Msg-id 730401.1699463265@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Fix some memory leaks in ecpg.addons  ("Tristan Partin" <tristan@neon.tech>)
Ответы Re: Fix some memory leaks in ecpg.addons  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-hackers
"Tristan Partin" <tristan@neon.tech> writes:
> clang and gcc both now support -fsanitize=address,undefined. These are 
> really useful to me personally when trying to debug issues. 
> Unfortunately ecpg code has a ton of memory leaks, which makes builds 
> really painful. It would be great to fix all of them, but I don't have 
> the patience to try to read flex/bison code. Here are two memory leak 
> fixes in any case.

I'm kind of failing to see the point.  As you say, the ecpg
preprocessor leaks memory like there's no tomorrow.  But given its
usage (process one source file and exit) I'm not sure that is worth
much effort to fix.  And what does it buy to fix just two spots?

            regards, tom lane



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

Предыдущее
От: "Tristan Partin"
Дата:
Сообщение: Fix some memory leaks in ecpg.addons
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Syncrep and improving latency due to WAL throttling