Clean up data conversion short-lived memory context.
dblink uses a short-lived data conversion memory context. However it
was not deleted when no longer needed, leading to a noticeable memory
leak under some circumstances. Plug the hole, along with minor
refactoring. Backpatch to 9.2 where the leak was introduced.
Report and initial patch by MauMau. Reviewed/modified slightly by
Tom Lane and me.
Branch
------
REL9_4_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/9d884a34c343641f7ab3c24377d7ec0970df4eea
Modified Files
--------------
contrib/dblink/dblink.c | 22 +++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)