This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix memory leak in C<sub X { sub {} }> arising from a refcount
authorGurusamy Sarathy <gsar@cpan.org>
Mon, 12 Mar 2001 10:21:31 +0000 (10:21 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Mon, 12 Mar 2001 10:21:31 +0000 (10:21 +0000)
commit1cf1f64f42eb50a67f2427ff9d6d24023a2b9997
treef018c0d258ab09ef9786fa18138cd3699adef558
parent4af394b4b82c7fc5b99bb1a2a3d3769b6b60ed11
fix memory leak in C<sub X { sub {} }> arising from a refcount
loop between the outer sub and the inner prototype anonsub

this also enables closures returned by subroutines that
subsequently get redefined to work without generating coredumps :)

completely removed the free_closures() hack--it shouldn't be
needed anymore

p4raw-id: //depot/maint-5.6/perl@9108
MANIFEST
embed.h
embed.pl
op.c
op.h
pod/perlapi.pod
pp_ctl.c
proto.h
sv.c
t/op/anonsub.t [new file with mode: 0755]