diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-12-28 11:41:25 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-12-28 11:41:25 -0500 |
commit | ea80d8d9437e80de6506dbfe3765d834653312bf (patch) | |
tree | 7f79a4671703a4e920aae9f1cb1969c2b15e359e /src/interfaces/libpq/fe-secure-gssapi.c | |
parent | 643428c54b95d472c6d949c3c3c11f347e371a2b (diff) | |
download | postgresql-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