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) *destination=DestroyString(*destination); return(*destination); } if (*destination == (char *) NULL) { *destination=AcquireString(source); return(*destination); } length=strlen(source); if (~length < MaxTextExtent) ThrowFatalException(ResourceLimitFatalError,"UnableToAcquireString"); *destination=(char *) ResizeQuantumMemory(*destination,length+MaxTextExtent, sizeof(*destination));
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 rawhide. (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: http://fedoraproject.org/wiki/BugZappers/F9CleanUp 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.