Memory leak fix in rmtree.c

Поиск
Список
Период
Сортировка
От Ильясов Ян
Тема Memory leak fix in rmtree.c
Дата
Msg-id GV1P251MB1004EB38F3330E50FA64F24ACD462@GV1P251MB1004.EURP251.PROD.OUTLOOK.COM
обсуждение исходный текст
Ответы Re: Memory leak fix in rmtree.c  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
Hello hackers,

Just like some of my colleagues I've been using Svace*
and I think I've found a bug in src/common/rmtree.c .

In 64th line function returns false in case it couldn't open a directory,
but the memory, that have been allocated for char** dirnames is
not freed.

The patch that has a fix of this is attached and is based on the latest
master code.

* ​- https://svace.pages.ispras.ru/svace-website/en/

Kind regards,
Ian Ilyasov.

Вложения

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

Предыдущее
От: Ashutosh Bapat
Дата:
Сообщение: Re: pgsql: Add EXPLAIN (MEMORY) to report planner memory consumption
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Memory leak fix in rmtree.c