]> granicus.if.org Git - postgresql/commit
Fix session-lifespan memory leak when a plperl function is redefined:
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Nov 2009 21:02:22 +0000 (21:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Nov 2009 21:02:22 +0000 (21:02 +0000)
commit1962ec68296271350346acc6bc1ce5e88bba8a64
treebc47061e37b353ef61ec2edb99c06d738f31e7c6
parent2164a24686bf7d6b10a9f9a9952954c76bc4bfa1
Fix session-lifespan memory leak when a plperl function is redefined:
we have to tell Perl it can release its compiled copy of the function
text.  Noted by Alexey Klyukin.

Back-patch to 8.2 --- the problem exists further back, but this patch
won't work without modification, and it's probably not worth the trouble.
src/pl/plperl/plperl.c