pgsql: Further fix thinko in plpgsql memory leak fix.

2020-12-28 Thread Tom Lane
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

pgsql: Further fix thinko in plpgsql memory leak fix.

2020-12-28 Thread Tom Lane
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

pgsql: Further fix thinko in plpgsql memory leak fix.

2020-12-28 Thread Tom Lane
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

pgsql: Further fix thinko in plpgsql memory leak fix.

2020-12-28 Thread Tom Lane
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