On Fri, 2006-06-30 at 00:37 -0400, Perrin Harkins wrote: > > HOWEVER: If I "delete $r->pnotes->{template}" before the script ends, > > there's no memory leak. > > It sounds like a problem with the DESTROY method in Template::Provider. > Can you add some logging to that method to see if it gets called?
Hey Perrin. You are indeed exactly correct. I tested it, and the DESTROY method in Template::Provider never gets called. However, when I manually do the delete on the hash key, DESTROY does get called. So, is there anything I can do about this in my code? Would this be a bug in mod_perl or in the Template Toolkit? This is TT 2.15, FWIW. -Max -- http://www.everythingsolved.com/ Competent, Friendly Bugzilla Services. And Everything Else, too.