Fix session-lifespan memory leak when a plperl function is redefined:
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Nov 2009 21:02:16 +0000 (21:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Nov 2009 21:02:16 +0000 (21:02 +0000)
commit67ec9adaf13fe79c13a53c6513ec3eb7adfaaddd
treef57d8837985a0e486df28440dcc7751334e7a9d9
parent22032820f958de081553da4b4475a78a8e7b2989
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