Subject: | Memory leak in version 0.8 |
If you use Env::C in the following constellation, you will get a
continues growing memory usage:
<!------------------------------------------->
#!/usr/bin/perl
sub BEGIN
{
eval('use Env::C;');
eval('Env::C::setenv("TZ","GMT",1);');
}
for(my $cc=0;$cc<100;$cc++){
for(my $c=0;$c<1000;$c++){
$ENV{TZ}="GMT";
$ENV{TZ}="";
}
printf("Check loop $cc\n");
sleep(1);
}
<!------------------------------------------->
The problem seems to be only happen, if you use the Env::C as eval in
the BEGIN block.