| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Further fix thinko in plpgsql memory leak fix. |
| Date: | 2020-12-28 16:56:08 |
| Message-ID: | E1ktvoW-00038F-3k@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2020-12-28 17:13:46 | pgsql: Expose the default for channel_binding in PQconndefaults(). |
| Previous Message | Tom Lane | 2020-12-28 16:42:22 | Re: pgsql: Fix memory leak in plpgsql's CALL processing. |