in reply to Memory leak

Devel::LeakTrace or one of the other Devel::Leak* modules might help.