Re: BUG #14929: Unchecked AllocateDir() return value in restoreTwoPhaseData()

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #14929: Unchecked AllocateDir() return value in restoreTwoPhaseData()
Дата
Msg-id CAB7nPqRJMNnf6CsUufoSEFgAxcQAMCNU08i=WcqGebnB=4Kgig@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #14929: Unchecked AllocateDir() return value inrestoreTwoPhaseData()  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Список pgsql-bugs
On Mon, Nov 27, 2017 at 7:35 PM, Amit Langote
<Langote_Amit_f8@lab.ntt.co.jp> wrote:
> It seems like a good idea to check cldir for NULL before freeing.  Please
> find attached a patch to implement the same.

There are other places where this could be added like
CheckPointLogicalRewriteHeap() if you'd like to make the code more
consistent, but my opinion would be on the contrary to drop all the
checks after AllocateDir if ReadDir is directly used. Not worth
bothering at the end.
-- 
Michael


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #14929: Unchecked AllocateDir() return value in restoreTwoPhaseData()
Следующее
От: Amit Langote
Дата:
Сообщение: Re: BUG #14929: Unchecked AllocateDir() return value inrestoreTwoPhaseData()