Re: Image::Magick memory leak question

From: Ben Morrow (usenet_at_morrow.me.uk)
Date: 11/21/03


Date: Fri, 21 Nov 2003 00:09:30 +0000 (UTC)


Stan Brown <stanb@panix.com> wrote:
> In <3fbc4f37.145998938@news2.news.adelphia.net>
> posting.account@lynxview.com (William Herrera) writes:
> Yes, it make perfect sense. I was naievly believing that since I had left
> the subroutine, and the $image object was "local" to it, that all traces of
> it would eb retruned to the free pool, as would be done, for non malloced
> memory in C.
>
> This seems to be a pretty basic weakness of perl. I wonder if perl6
> addresses this?

No, this is a basic weakness of ImageMagick, or of C. Perl will
correctly tell the Image::Magick object to free itself at the end of
the scope: if it fails to do so correctly, this is not Perl's fault.

Ben

-- 
If I were a butterfly I'd live for a day, / I would be free, just blowing away.
This cruel country has driven me down / Teased me and lied, teased me and lied.
I've only sad stories to tell to this town: / My dreams have withered and died.
  ben@morrow.me.uk   <=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>   (Kate Rusby)