pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Further fix thinko in plpgsql memory leak fix.
Date: Mon, 28 Dec 2020 16:56:08 +0000
Message-ID: <E1ktvoW-00038F-3k@gemulon.postgresql.org> (raw)

Further fix thinko in plpgsql memory leak fix.

There's a second call of get_eval_mcontext() that should also be
get_stmt_mcontext().  This is actually dead code, since no
interesting allocations happen before switching back to the
original context, but we should keep it in sync with the other
call to forestall possible future bugs.

Discussion: https://postgr.es/m/f075f7be-c654-9aa8-3ffc-e9214622f02a@enterprisedb.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7966b41ded75c9c5f19b827d6d36f9408ca121a2

Modified Files
--------------
src/pl/plpgsql/src/pl_exec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1ktvoW-00038F-3k@gemulon.postgresql.org>
Permalink:  ../E1ktvoW-00038F-3k@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ktvoW-00038F-3k@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Further fix thinko in plpgsql memory leak fix.
  In-Reply-To: <E1ktvoW-00038F-3k@gemulon.postgresql.org>
  References: <E1ktvoW-00038F-3k@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