From: Cristy Date: Mon, 18 Jun 2018 22:50:04 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-3~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7d011f9873e278b66e8d226d3ef1524bf64dac7;p=imagemagick ... --- diff --git a/coders/mvg.c b/coders/mvg.c index 2a49f0a8c..ba8eaea50 100644 --- a/coders/mvg.c +++ b/coders/mvg.c @@ -218,7 +218,10 @@ static Image *ReadMVGImage(const ImageInfo *image_info,ExceptionInfo *exception) } } if (draw_info->primitive == (char *) NULL) - ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); + { + draw_info=DestroyDrawInfo(draw_info); + return(DestroyImageList(image)); + } (void) DrawImage(image,draw_info,exception); (void) SetImageArtifact(image,"MVG",draw_info->primitive); draw_info=DestroyDrawInfo(draw_info);