Re: Why pfree(NULL) breaks execution?

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Why pfree(NULL) breaks execution?
Дата
Msg-id AANLkTi=Ldfu3N0j2bZsLCfBtUnXCLmpnLBtSS9-RRX-B@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Why pfree(NULL) breaks execution?  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Why pfree(NULL) breaks execution?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 4 March 2011 14:50, Robert Haas <robertmhaas@gmail.com> wrote:
> I think that free(NULL) works on some platforms but not all.  I don't
> see what advantage we'd get out of making pfree(NULL) silently work,
> and there's a clear disadvantage: it would remove a useful sanity
> check.

I don't feel particularly strongly about what pfree() should do one
way or the other, but that isn't so; free(NULL) works on all
platforms, and is required to by the standard.

--
Regards,
Peter Geoghegan


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Why pfree(NULL) breaks execution?
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Sync Rep v19