]> 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:28 +0000 (21:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Nov 2009 21:02:28 +0000 (21:02 +0000)
commitb50e026e336896c1a437baf571e9cb02897abacc
tree1a35287556b6dd4e7e58c7675591bfa090750a99
parent602878d5abe0033b3bf59ac11d5c58bd1f553632
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