re: Change pfree to accept NULL argument

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема re: Change pfree to accept NULL argument
Дата
Msg-id CAEudQArevG-VO+x2eyk12UUnY192nBdBnwFrcXNyER1FasxChw@mail.gmail.com
обсуждение исходный текст
Ответ на Change pfree to accept NULL argument  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Список pgsql-hackers

>Per discussion in [0], here is a patch set that allows pfree() to accept
>a NULL argument, like free() does.

>Also, a patch that removes the now-unnecessary null pointer checks
>before calling pfree(). And a few patches that do the same for some
>other functions that I found around. (The one with FreeDir() is perhaps
>a bit arguable, since FreeDir() wraps closedir() which does *not* accept
>NULL arguments. Also, neither FreeFile() nor the underlying fclose()
>accept NULL.)

Hi Peter,

+1

However, after a quick review, I noticed some cases of PQ freemen missing.
I took the liberty of making a v1, attached.

regards,

Ranier Vilela

Вложения

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Schema variables - new implementation for Postgres 15
Следующее
От: Nikita Malakhov
Дата:
Сообщение: Re: [PATCH] ALTER TABLE ... SET STORAGE default