]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Further fix thinko in plpgsql memory leak fix.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 28 Dec 2020 16:55:23 +0000 (11:55 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 28 Dec 2020 16:55:41 +0000 (11:55 -0500)
commit7966b41ded75c9c5f19b827d6d36f9408ca121a2
treec3124335bfd233f6b2637a48f3c37f5440e3d1ee
parent2e15f48d97271ce4ee6707f172494a1ebd0bc8e2
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
src/pl/plpgsql/src/pl_exec.c