Subject: | Memory leak in union types |
failing test:
{
my $Str = find_type_constraint('Str');
my $Undef = find_type_constraint('Undef');
my $Str_or_Undef = Moose::Meta::TypeConstraint::Union->new(
type_constraints => [ $Str, $Undef ] );
memory_cycle_ok($Str_or_Undef, 'union types do not leak');
}
# Cycle #1
# Moose::Meta::TypeConstraint::Union A->{constraint} => &B
# closure &B, $self => $C
# $C => Moose::Meta::TypeConstraint::Union A
I'm patching this right now, and then poke someone to release.