memory leak (gif.c) for Magick 6.2.6

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted 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);
}
swiss_knife

Post by swiss_knife »

actually, let me post it in "bugs" instead
Post Reply