Thanks for your enlightenment. I've been playing with perl -Dm compiled with -DDEBUGGING but I don't know yet how to make sense of the address it prints, or how do they map to perl data structures.
0x81cdb38: (01225) malloc 28 bytes 0x81cf880: (01226) malloc 28 bytes 0x81cdb58: (01227) malloc 40 bytes 0x81ce210: (01228) malloc 16 bytes 0x81c2560: (01229) free
Also I've found that the offending modules, although the objects I create inside the loop, are scoped inside the loop, so the object should be destroyed each loop iteration, as it happens with my test modules:
new Test DESTROY Test new Test DESTROY Test new Test
I have found the problem in Mail::Audit. It was a circular reference:
# $self->{obj} = $self; # backwards-compatibility for everyone who d +esperately needed access to $self
Taking that line out solves the problem. I'll send a notice to the author. Your insight has been very useful. Thanks.

In reply to Re^2: Abnormal memory in some modules by piotr
in thread Abnormal memory in some modules by piotr

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.