I have verified that I am using the latest version of ImageMagick
I have searched open and closed issues to ensure it has not already been reported
Description
hello,i find a memory leak bug in imagemagick,the details is on the Steps to Reproduce.
Steps to Reproduce
the bug located in animate.c,
static Image *XMagickCommand(Display *display,XResourceInfo *resource_info,
XWindows *windows,const CommandType command_type,
Image **image, MagickStatusType *state,
ExceptionInfo *exception) functiion
the bug code is on https://github.com/ImageMagick/ImageMagick/blob/master/MagickCore/animate.c#L424
the code fragment is as follows: filelist=(char **) AcquireMagickMemory(sizeof(char *));
Prerequisites
Description
hello,i find a memory leak bug in imagemagick,the details is on the Steps to Reproduce.
Steps to Reproduce
the bug located in animate.c,
static Image *XMagickCommand(Display *display,XResourceInfo *resource_info,
XWindows *windows,const CommandType command_type,
Image **image, MagickStatusType *state,
ExceptionInfo *exception) functiion
the bug code is on
https://github.com/ImageMagick/ImageMagick/blob/master/MagickCore/animate.c#L424
the code fragment is as follows:
filelist=(char **) AcquireMagickMemory(sizeof(char *));we can see that we allocate a memory and assigned it to file list,but we forget to free it in the code:
https://github.com/ImageMagick/ImageMagick/blob/master/MagickCore/animate.c#L434
the code fragment is as follows:
credit:www.vackbot.com(墨云科技)
The text was updated successfully, but these errors were encountered: