pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Plug memory leak
Date: Wed, 13 Jul 2022 11:00:07 +0000
Message-ID: <E1oBa6A-002aGl-GK@gemulon.postgresql.org> (raw)

Plug memory leak

Commit 054325c5eeb3 created a memory leak in PQsendQueryInternal in case
an error occurs while sending the message.  Repair.

Backpatch to 14, like that commit.  Reported by Coverity.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e1df03b80d51e093fddb2d554c9a81a28dae568c

Modified Files
--------------
src/interfaces/libpq/fe-exec.c | 1 +
1 file changed, 1 insertion(+)



view thread (8+ messages)  latest in thread

Message-ID: <E1oBa6A-002aGl-GK@gemulon.postgresql.org>
Permalink:  ../E1oBa6A-002aGl-GK@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oBa6A-002aGl-GK@gemulon.postgresql.org

 · 

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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Plug memory leak
  In-Reply-To: <E1oBa6A-002aGl-GK@gemulon.postgresql.org>
  References: <E1oBa6A-002aGl-GK@gemulon.postgresql.org>

* 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