Red Hat Bugzilla – Bug 305821
Patch for memory leak in ImageMagick 6.3.5-9
Last modified: 2008-04-26 04:09:21 EDT
There is a small memory leak when cloning strings in ImageMagick 6.3.5-9. The
patch is already in ImageMagick 6.3.6-0 scheduled for release on September 29.
To patch ImageMagick 6.3.5-9, remove
*destination=(char *) NULL;
in CloneString() of magick/string.c. The results should look like this:
if (source == (const char *) NULL)
if (*destination != (char *) NULL)
if (*destination == (char *) NULL)
if (~length < MaxTextExtent)
*destination=(char *) ResizeQuantumMemory(*destination,length+MaxTextExtent,
Thanks for the heads up. Will get this into my next build.
Based on the date this bug was created, it appears to have been reported
during the development of Fedora 8. In order to refocus our efforts as
a project we are changing the version of this bug to '8'.
If this bug still exists in rawhide, please change the version back to
(If you're unable to change the bug's version, add a comment to the bug
and someone will change it for you.)
Thanks for your help and we apologize for the interruption.
The process we're following is outlined here:
We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.
Short intro: I'm a new co-maintainer of ImageMagick and as such walking through
all open bugs.
This bug is fixed in rawhide / F-9 closing.