Re: BUG #18338: Memory leak in function 'dumpRule'

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: BUG #18338: Memory leak in function 'dumpRule'
Дата
Msg-id ed717500-6975-4e57-84ed-6e1fafa60d6e@iki.fi
обсуждение исходный текст
Ответ на BUG #18338: Memory leak in function 'dumpRule'  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
On 12/02/2024 15:36, PG Bug reporting form wrote:
> The memory leak is found by a static analyzer developed at [CAST](
> https://www.linkedin.com/company/cast-center/).
> 
> The memory alocated at [in qtabname]() is getting lost when function
> [pg_fatal is
>
called](https://github.com/postgres/postgres/blob/09eb633e1baa3b7cd7929f3cc77f9c46f63c20b1/src/bin/pg_dump/pg_dump.c#L18007)

No. pg_fatal() calls exit(1). It's not a leak when you exit the process; 
that will certainly release the memory.

There are hundreds of pg_fatal() calls in pg_dump, so I wonder why the 
tool picked on that one in particular. But it's not a bug.

-- 
Heikki Linnakangas
Neon (https://neon.tech)




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

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: BUG #18338: Memory leak in function 'dumpRule'
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #18339: Erroneous dependency references of Postgres 15.4 packages when installing 16.2 from GPDG repository