Re: ldap: fix resource leak

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ldap: fix resource leak
Дата
Msg-id 26557.1162772928@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ldap: fix resource leak  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: ldap: fix resource leak  (Neil Conway <neilc@samurai.com>)
Список pgsql-patches
I wrote:
> ...  Not sure that
> this is actually a net win though, as a PANIC might well be considered a
> worse problem than a one-time leak of some LDAP state.

Come to think of it: either elog(ERROR) or a failure return from
CheckLDAPAuth is going to lead directly to backend exit, so the
whole thing is pretty much a cosmetic issue anyway.  I don't object
to adding the ldap_unbind calls, but I'd not recommend adding a large
pile of code.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: ldap: fix resource leak
Следующее
От: Neil Conway
Дата:
Сообщение: Re: ldap: fix resource leak