Possible leak in SVGInfo *DestroySVGInfo()?

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
maksqwe
Posts: 5
Joined: 2014-04-04T09:18:50-07:00
Authentication code: 6789

Possible leak in SVGInfo *DestroySVGInfo()?

Post by maksqwe »

svg.c 282

if (svg_info->text != (char *) NULL)
svg_info->text=DestroyString(svg_info->text);

if (svg_info->scale != (double *) NULL)
svg_info->scale=(double *) (svg_info->scale); // <===

if (svg_info->title != (char *) NULL)
svg_info->title=DestroyString(svg_info->title);
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Possible leak in SVGInfo *DestroySVGInfo()?

Post by dlemstra »

Fixed, thank you for also reporting this. Please let us know if you find more :)
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply