aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-secure-gssapi.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-12-28 11:41:25 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-12-28 11:41:25 -0500
commitfd1347f9d8def3a892a7335ec026bff0227db1af (patch)
treeb2fe24fe3c0cd57d80cb72fd874c2404cbbdff20 /src/interfaces/libpq/fe-secure-gssapi.c
parent190f0af0d1277429467ef28332818952c1fd395f (diff)
downloadpostgresql-fd1347f9d8def3a892a7335ec026bff0227db1af.tar.gz
postgresql-fd1347f9d8def3a892a7335ec026bff0227db1af.zip
Fix thinko in plpgsql memory leak fix.
Commit a6b1f5365 intended to place the transient "target" list of a CALL statement in the function's statement-lifespan context, but I fat-fingered that and used get_eval_mcontext() instead of get_stmt_mcontext(). The eval_mcontext belongs to the "simple expression" infrastructure, which is destroyed at transaction end. The net effect is that a CALL in a procedure to another procedure that has OUT or INOUT parameters would fail if the called procedure did a COMMIT. Per report from Peter Eisentraut. Back-patch to v11, like the prior patch. Discussion: https://postgr.es/m/f075f7be-c654-9aa8-3ffc-e9214622f02a@enterprisedb.com
Diffstat (limited to 'src/interfaces/libpq/fe-secure-gssapi.c')
0 files changed, 0 insertions, 0 deletions