This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Free iterator when freeing tied hash
authorFather Chrysostomos <sprout@cpan.org>
Sat, 22 Sep 2012 05:01:19 +0000 (22:01 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 23 Sep 2012 00:10:43 +0000 (17:10 -0700)
commit895cdc83ca4f8ad093074b3bd5d0fbc1d09f7628
tree16c8d394266ec5912ed747c3fdf883556e91dcb3
parentaec0c0cc27651656899efeb7c4f64d2838a9cf9e
Free iterator when freeing tied hash

The current iterator was leaking when a tied hash was freed or
undefined.

Since we already have a mechanism, namely HvLAZYDEL, for freeing
HvEITER when not referenced elsewhere, we can use that.
hv.c
t/op/svleak.t