develooper Front page | perl.perl5.porters | Postings from January 2003

Re: Freeing Code

Rafael Garcia-Suarez
January 24, 2003 09:01
Re: Freeing Code
Message ID: (Bill Bennett) wrote:
> I've done some tests with eval'ing strings in a loop to create
> anon sub's and observe steady growth in memory size.  That's why
> I suspect they aren't.  I have an interactive application which 
> allows execution of perl fragments submitted by (trusted) user.
> Seems like I'm stuck with a built-in memory leak.

On the other hand, a quick test shows that the ops allocated
by a simple $x = eval qq{sub...} are correctly freed. Could
you produce a test case for your memory leak ? Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About