memory leak (gif.c) for Magick 6.2.6

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
swiss_knife

memory leak (gif.c) for Magick 6.2.6

Post by swiss_knife »

(detected with Purify on Windows XP) must be:

static LZWInfo *RelinquishLZWInfo(LZWInfo *lzw_info)
{
lzw_info->stack->codes=(unsigned long *) RelinquishMagickMemory(lzw_info->stack->codes);
lzw_info->stack=(LZWStack *) RelinquishMagickMemory(lzw_info->stack);
lzw_info=(LZWInfo *) RelinquishMagickMemory(lzw_info);
return((LZWInfo *) NULL);
}


instead of:

static LZWInfo *RelinquishLZWInfo(LZWInfo *lzw_info)
{
lzw_info->stack=(LZWStack *) RelinquishMagickMemory(lzw_info->stack);
lzw_info=(LZWInfo *) RelinquishMagickMemory(lzw_info);
return((LZWInfo *) NULL);
}
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

The leak you reported is fixed in the current ImageMagick release, 6.2.8-1.
Post Reply