Change pfree to accept NULL argument

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Change pfree to accept NULL argument
Дата
Msg-id cf26e970-8e92-59f1-247a-aa265235075b@enterprisedb.com
обсуждение исходный текст
Ответы Re: Change pfree to accept NULL argument  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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.)


[0]: https://www.postgresql.org/message-id/1074830.1655442689@sss.pgh.pa.us
Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: pg_stat_have_stats() returns true for dropped indexes (or for index creation transaction rolled back)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Change pfree to accept NULL argument