Re: libpq: Remove redundant null pointer checks before free()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: libpq: Remove redundant null pointer checks before free()
Дата
Msg-id 1285716.1655494318@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: libpq: Remove redundant null pointer checks before free()  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Список pgsql-hackers
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> On 17.06.22 07:11, Tom Lane wrote:
>> Notably, I think the choice
>> that pfree(NULL) is disallowed traces directly to worries about
>> coding-pattern-compatibility with pre-POSIX free().  Should we
>> revisit that?

> Yes please, and also repalloc().

repalloc no, because you wouldn't know which context to do the
allocation in.

            regards, tom lane



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: SGML doc file references
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SGML doc file references