use Apache::Leak; leak_test { my $obj = Foo->new; $obj->thingy; }; #now look in error_log for results
Apache::Leak is a module built to track memory leaks in mod_perl code.
Apache::Leak
Devel::Leak
Doug MacEachern
Leak.xs was derived from Nick Ing-Simmons' Devel::Leak