https://github.com/ImageMagick/ImageMagick/issues/603
diff --git a/coders/mvg.c b/coders/mvg.c index a22a25f..9803639 100644 --- a/coders/mvg.c +++ b/coders/mvg.c
@@ -191,9 +191,13 @@ image->rows=(size_t) (draw_info->affine.sy*image->rows); status=SetImageExtent(image,image->columns,image->rows,exception); if (status == MagickFalse) - return(DestroyImageList(image)); + { + draw_info=DestroyDrawInfo(draw_info); + return(DestroyImageList(image)); + } if (SetImageBackgroundColor(image,exception) == MagickFalse) { + draw_info=DestroyDrawInfo(draw_info); image=DestroyImageList(image); return((Image *) NULL); }