in reply to Re: Abnormal memory in some modules
in thread Abnormal memory in some modules
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:0x81cdb38: (01225) malloc 28 bytes 0x81cf880: (01226) malloc 28 bytes 0x81cdb58: (01227) malloc 40 bytes 0x81ce210: (01228) malloc 16 bytes 0x81c2560: (01229) free
I have found the problem in Mail::Audit. It was a circular reference:new Test DESTROY Test new Test DESTROY Test new Test
Taking that line out solves the problem. I'll send a notice to the author. Your insight has been very useful. Thanks.# $self->{obj} = $self; # backwards-compatibility for everyone who d +esperately needed access to $self
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Abnormal memory in some modules
by tilly (Archbishop) on Aug 17, 2004 at 15:46 UTC |