Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 83929
Status: resolved
Priority: 0/
Queue: Moose

People
Owner: Nobody in particular
Requestors: ether [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.0604
Fixed in: 2.0800



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.
Patched in branch rfm/rt83929_type_union_leak