Re: pgsql: Fix memory leak in pgbench

Поиск
Список
Период
Сортировка
От Masahiko Sawada
Тема Re: pgsql: Fix memory leak in pgbench
Дата
Msg-id CAD21AoCpGSkvMNE7iO_mkWodrV-QpUZDqtAG5bzspp4=QFiTCA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Fix memory leak in pgbench  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-committers
On Thu, Apr 11, 2019 at 12:58 PM Alvaro Herrera
<alvherre@2ndquadrant.com> wrote:
>
> On 2019-Apr-10, Masahiko Sawada wrote:
>
> > This change leads a compiler warning on my machine:
> >
> > pgbench.c: In function ‘readCommandResponse’:
> > pgbench.c:2730: warning: ISO C90 forbids mixed declarations and code
>
> > I think we should declare is_last before doing next_res = PQgetResult(st->con).
> >
> > Attached patch fixes it.
>
> Thanks, pushed.
>

Thank you!

Regards,

--
Masahiko Sawada
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center



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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: pgsql: Fix memory leak in pgbench
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: pgsql: Fix declaration after statement