This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta for #89544, nested closure leak
authorFather Chrysostomos <sprout@cpan.org>
Tue, 26 Jun 2012 03:33:40 +0000 (20:33 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 26 Jun 2012 03:33:40 +0000 (20:33 -0700)
pod/perldelta.pod

index bac2a71..b14f415 100644 (file)
@@ -380,6 +380,13 @@ During parsing, subs declared after errors no longer leave stubs
 
 C<do $file> now clears C<$@> after an I/O error [perl #113730].
 
+=item *
+
+Closures containing no string evals no longer hang on to their containing
+subroutines, allowing variables closed over by outer subroutines to be
+freed when the outer sub is freed, even if the inner sub still exists
+[perl #89544].
+
 =back
 
 =head1 Known Problems