Subject: | Memory leak in CPAN::Meta::Converter |
Ticket #74495 in CPAN.pm reports memory leak when repeatedly loading
META files. I've narrowed it down to CPAN::META::Converter. Attached
file (run in a directory with "META.json") demonstrates leak.
Subject: | convert.pl |
#!/usr/bin/env perl
use 5.010;
use strict;
use warnings;
use autodie;
use CPAN::Meta::Converter;
use Parse::CPAN::Meta;
my $struct = Parse::CPAN::Meta->load_file("META.json");
my $cmc = CPAN::Meta::Converter->new( $struct );
while (1) {
my $self = $cmc->convert( version => 2 );
}