Todd Lorenz schreef:
> Could someone kindly confirm/debunk this?
Confirmed. It seems that this is a memory leak in
Params::Validate::validate(), possibly connected to optional parameters.
This:
perl -MDateTime -e'while(1){DateTime->new(year=>2003)}'
does not leak; this:
perl -MDateTime -e'while(1){DateTime->new(year=>2003, month=>11)}'
does.
The pure Perl version of Params::Validate is OK. This:
export PV_TEST_PERL=1
perl -MDateTime -e'while(1){DateTime->new(year=>2003, month=>11)}'
uses Params::ValidatePP, and does not leak.
This is linux, perl 5.8.0, DT 0.18, Params::Validate 0.69.
Eugene