Subject: | Memory leak when processing hash |
Seems to be related to bug #46058
Here is simple test case:
use strict;
use warnings;
use Template;
my $t = '[% FOREACH item IN DATA %][% FOREACH data IN item.stuff %] ...
output some stuff [% END %][% END %]';
my $out;
my $tt = Template->new();
while (1) {
$out = undef;
$tt->process(\$text, { x => {} }, \$out);
}