NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Test::Weaken (Score:1)
This sounds contradictory, but the trick Test::Weaken uses is weak references -- that way you try to free something, but still have a reference to anything that didn't get freed. Most useful for you might be that poof() returns a list of the objects which didn't get freed and you can actually examine them. If that's enough to tell you where they were created, you're done. Otherwise, you can trying adding tags that let you know where the object came from.
Ignore the warning that it's alpha software. I've used Test::Weaken a lot. It's part of the Parse::Marpa regression test and has caught a lot of leaks for me. Some day soon I'll change the documentation to describe Test::Weaken as released.
hope this helps,
jeffrey kegler
Reply to This