in reply to Re: releasing GD in CGI script?
in thread releasing GD in CGI script?

You're correct. I should have been more explicit. This is a ModPerl script

Is there a way to force memory cleaning?

Replies are listed 'Best First'.
Re^3: releasing GD in CGI script?
by moritz (Cardinal) on Dec 18, 2008 at 07:52 UTC
    Usually you don't need this. Just use strict; use warnings; and make the variable that holds the GD object a lexical variable, then it will be cleaned automatically on scope exit.

    If you can't figure it out, you can still say undef $gd;