]> granicus.if.org Git - postgresql/commit
Clean up data conversion short-lived memory context.
authorJoe Conway <mail@joeconway.com>
Fri, 20 Jun 2014 19:22:13 +0000 (12:22 -0700)
committerJoe Conway <mail@joeconway.com>
Fri, 20 Jun 2014 19:24:59 +0000 (12:24 -0700)
commit1dde5782e34a1c5ef2ce9d97cf18007fed5fde92
tree56744eb73882df20bd8d3a4f06259ad792d57262
parentecac0e2b9e8e8e78d771b20fe441e95bb02db2fa
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