pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix memory leak in pgbench
Date: Tue, 9 Apr 2019 19:28:46 +0200 (CEST)
Message-ID: <alpine.DEB.2.21.1904091919180.19300@lancre> (raw)
In-Reply-To: <E1hDu6Z-00010m-Ct@gemulon.postgresql.org>
References: <E1hDu6Z-00010m-Ct@gemulon.postgresql.org>


Hello Alvaro,

> Fix memory leak in pgbench

> Commit 25ee70511ec2 introduced a memory leak in pgbench: some PGresult
> structs were not being freed during error bailout, because we're now
> doing more PQgetResult() calls than previously.

Indeed, I did not consider cleaning up on errors when removing cset, and 
if errors are handled somehow it would have caused a problem.

Thanks for the fix. I could have prepared a patch if told that there was 
some problem, but it seems that pg coverity reports are private.

-- 
Fabien.





view thread (23+ messages)  latest in thread

Message-ID: <alpine.DEB.2.21.1904091919180.19300@lancre>
Permalink:  ../alpine.DEB.2.21.1904091919180.19300@lancre/
Also on:    postgresql.org/message-id/alpine.DEB.2.21.1904091919180.19300@lancre

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: coelho@cri.ensmp.fr, alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Fix memory leak in pgbench
  In-Reply-To: <alpine.DEB.2.21.1904091919180.19300@lancre>
  References: <E1hDu6Z-00010m-Ct@gemulon.postgresql.org> <alpine.DEB.2.21.1904091919180.19300@lancre>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox