]> granicus.if.org Git - postgresql/commit
Clean up data conversion short-lived memory context.
authorJoe Conway <mail@joeconway.com>
Fri, 20 Jun 2014 19:23:05 +0000 (12:23 -0700)
committerJoe Conway <mail@joeconway.com>
Fri, 20 Jun 2014 19:27:04 +0000 (12:27 -0700)
commit3e2cfa42f9b9ddfb469f0f56d78377b1864eb894
treef3a84281183d8023d9f71e6956d0cdec542f579c
parentb568d383610ce1777587ca26b1fab5571a1c8a6f
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.
contrib/dblink/dblink.c