Re: Avoid possible memory leak (src/common/rmtree.c)

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: Avoid possible memory leak (src/common/rmtree.c)
Дата
Msg-id 3FE85611-3B27-4E88-B61B-36FEDE3F2C59@yesql.se
обсуждение исходный текст
Ответ на Avoid possible memory leak (src/common/rmtree.c)  (Ranier Vilela <ranier.vf@gmail.com>)
Ответы Re: Avoid possible memory leak (src/common/rmtree.c)  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
> On 25 Jul 2023, at 16:31, Ranier Vilela <ranier.vf@gmail.com> wrote:

> rmtree function can leak 64 bytes per call,
> when it can't open a directory.

Skimming the tree there doesn't seem to be any callers which aren't exiting or
ereporting on failure so the real-world impact seems low.  That being said,
silencing static analyzers could be reason enough to delay allocation.

--
Daniel Gustafsson




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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [PATCH] Small refactoring of inval.c and inval.h
Следующее
От: Melih Mutlu
Дата:
Сообщение: Re: [PATCH] Reuse Workers and Replication Slots during Logical Replication