Fix calloc check if oom (PQcancelCreate)

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Fix calloc check if oom (PQcancelCreate)
Дата
Msg-id CAEudQAqQFTH7xCB-+K6zEKjfqbhqCxcr_w4DuJTxVT6h3vzu2w@mail.gmail.com
обсуждение исходный текст
Ответы Re: Fix calloc check if oom (PQcancelCreate)
Список pgsql-hackers
Hi.

I think that commit 61461a3, left some oversight.
The function *PQcancelCreate* fails in check,
return of *calloc* function.

Trivial fix is attached.

But, IMO, I think that has more problems.
If any allocation fails, all allocations must be cleared.
Or is the current behavior acceptable?

best regards,
Ranier Vilela



Вложения

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