Re: pg_ctl infinite loop and memory leak

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_ctl infinite loop and memory leak
Дата
Msg-id 22766.1251856891@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_ctl infinite loop and memory leak  (Jeff Davis <pgsql@j-davis.com>)
Ответы Re: pg_ctl infinite loop and memory leak  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-bugs
Jeff Davis <pgsql@j-davis.com> writes:
> I attached a quick patch that seems to do the trick. It appears that
> fgets() will always return non-NULL if the size passed in is 1 (i.e.
> maxlength in the caller is 0).

Huh, interesting corner case.  I'd be inclined to fix by initializing
maxlength to 1 though.

Where's the memory leak?

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5025: Aggregate function with subquery in 8.3 and 8.4.
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: pg_ctl infinite loop and memory leak