> With this simple test script: > > print "Content-type: text/html\n\n"; > my $var = 'x' x 500000; > my $sub = sub { my $sub2 = sub { $var; }; }; > print "Done\n"; > > $var does not get freed, and the process grows each request. Has anyone > seen this sort of behavior and have any ideas/workarounds (besides don't > do that). I've commented on this before, as have others, in the context of using Error.pm. There is no workaround for this except "don't do that." - Perrin
- memory leaking with closures Alex Krohn
- Re: memory leaking with closures Perrin Harkins
- Re: memory leaking with closures ___cliff rayman___
- Re: memory leaking with closures Ken Williams
- Re: memory leaking with closures Alex Krohn
- Re: memory leaking with closures Stas Bekman
- Re: memory leaking with closures Perrin Harkins
- Re: memory leaking with closures Stas Bekman
- Re: memory leaking with closures Barrie Slaymaker
- Re: memory leaking with closures Gurusamy Sarathy
- SV: memory leaking with closures Arthur Bergman
- RE: memory leaking with closures Arthur Bergman