Fix session-lifespan memory leak when a plperl function is redefined:

Tom Lane <tgl@sss.pgh.pa.us>

Commit: d4d4e95030f2c808e1cc85404959145e37db42ba
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-11-29T21:02:34Z
Releases: 8.2.15
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.

Files

PathChange+/−
src/pl/plperl/plperl.c modified +7 −4