]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Clean up data conversion short-lived memory context.
authorJoe Conway <mail@joeconway.com>
Fri, 20 Jun 2014 19:22:34 +0000 (12:22 -0700)
committerJoe Conway <mail@joeconway.com>
Fri, 20 Jun 2014 19:26:26 +0000 (12:26 -0700)
commit9d884a34c343641f7ab3c24377d7ec0970df4eea
tree116bf1d0d26a7996ba1137f641e0a1a99584e274
parent4bc0a13a8a6af0320923a89238b7ab3f27c28d56
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