pgsql: Further fix thinko in plpgsql memory leak fix. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Further fix thinko in plpgsql memory leak fix.
Date
Msg-id E1ktvoW-000388-2Z@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5f2e09bcccd771629fb7a2885f8c468ae0f7fb33

Modified Files
--------------
src/pl/plpgsql/src/pl_exec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix thinko in plpgsql memory leak fix.
Next
From: Tom Lane
Date:
Subject: pgsql: Expose the default for channel_binding in PQconndefaults().