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
commitea80d8d9437e80de6506dbfe3765d834653312bf (patch)
tree7f79a4671703a4e920aae9f1cb1969c2b15e359e /src/interfaces/libpq/fe-secure-gssapi.c
parent643428c54b95d472c6d949c3c3c11f347e371a2b (diff)
downloadpostgresql-ea80d8d9437e80de6506dbfe3765d834653312bf.tar.gz
postgresql-ea80d8d9437e80de6506dbfe3765d834653312bf.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