in reply to Re: CGI::Application + mod_perl =|!= memory leak
in thread CGI::Application + mod_perl =|!= memory leak
binmode having no use (purportedly) under linux I did not use it. I should have noted that the shortest case foo.pm is really the shortest case, that includes removing the close on the filehandle (which is going out of scope anyway), and also returning a reference to a scalar rather than the scalar itself.
Sadly, none of these sensible solutions makes the leak go awayl, but I think that returning the reference kept two copies of $image in memory - one copy dissapears once the request in completed.
diotalevi++
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: CGI::Application + mod_perl =|!= memory leak
by Aristotle (Chancellor) on May 21, 2003 at 11:54 UTC | |
|
Re: Re: Re: CGI::Application + mod_perl =|!= memory leak
by diotalevi (Canon) on May 21, 2003 at 13:53 UTC |