Re: pgsql: Fix memory leak in pgbench - Mailing list pgsql-committers

From Masahiko Sawada
Subject Re: pgsql: Fix memory leak in pgbench
Date
Msg-id CAD21AoCpGSkvMNE7iO_mkWodrV-QpUZDqtAG5bzspp4=QFiTCA@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: Fix memory leak in pgbench  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List 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 by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: pgsql: Fix memory leak in pgbench
Next
From: Thomas Munro
Date:
Subject: Re: pgsql: Fix declaration after statement