Subject: | memory leak in render()? |
#!/usr/bin/perl -w
use strict;
use Parse::BBCode;
my $p = Parse::BBCode->new();
my $code = 'some [b]b code[/b]';
while (1) {
my $parsed = $p->render($code);
}
__END__
memory usage is 100s of megabytes within seconds.
perl v5.10.0 built for x86_64-linux-gnu-thread-multi
Linux 2.6.26-2-amd64 #1 SMP Thu Nov 5 02:23:12 UTC 2009 x86_64 GNU/Linux
debian lenny stable
sorry, i don't have time right now to find the bug myself ...