Remove inappropriate memory context switch in shutdown_MultiFuncCall().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 25a4f1afec301b8358cde28099b68bf43f18d5b4
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-11-30T18:49:48Z
Releases: 8.2.12
Remove inappropriate memory context switch in shutdown_MultiFuncCall().
This was a thinko introduced in a patch from last February; it results
in memory leakage if an SRF is shut down before the actual end of query,
because subsequent code will be running in a longer-lived context than
it's expecting to be.

Files

PathChange+/−
src/backend/utils/fmgr/funcapi.c modified +1 −2