Re: Two coverity non-bugs

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Two coverity non-bugs
Дата
Msg-id 26466.1145460394@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Two coverity non-bugs  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-patches
Martijn van Oosterhout <kleptog@svana.org> writes:
> Note, what coverity actually picked up was that in the latter case in
> _selectOutputSchema that the free will always execute because if
> AH->currSchema was NULL it would have died at the beginning of the
> function (line 2205). It's me who misinterpreted the fix. We should
> probably be adding checks to all the strdups and to line 2205 instead.

Ah, OK, so it wasn't doing this on the basis of a global determination
that currSchema couldn't be NULL.  That makes more sense then.  I agree
that line 2205 would be more consistent if it checked for null currSchema.

            regards, tom lane

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

Предыдущее
От: "Peter Brant"
Дата:
Сообщение: Re: pgstat: remove delayed destroy / pipe:
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: [PATCH] Tiny memleak in libpq