perldelta for 7004ee4937 and a618185710
authorFather Chrysostomos <sprout@cpan.org>
Fri, 15 Nov 2013 04:30:30 +0000 (20:30 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 15 Nov 2013 04:30:30 +0000 (20:30 -0800)
pod/perldelta.pod

index a252fce..e2b0154 100644 (file)
@@ -554,6 +554,14 @@ Undefining a glob that triggers a DESTROY method that undefines the same
 glob is now safe.  It used to produce "Attempt to free unreferenced glob
 pointer" warnings and leak memory.
 
+=item *
+
+If subroutine redefinition (C<eval 'sub foo{}'> or C<newXS> for XS code)
+triggers a DESTROY method on the sub that is being redefined, and that
+method assigns a subroutine to the same slot (C<*foo = sub {}>), C<$_[0]>
+is no longer left pointing to a freed scalar.  Now there is a memory leak
+instead. :-(
+
 =back
 
 =head1 Known Problems