From: Cristy Date: Mon, 19 Feb 2018 12:48:42 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6455 X-Git-Tag: 7.0.7-24~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c556c9d01e54d1d0b72485c500b43afa1a309b5;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6455 --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 3120c0bbc..008f1b10d 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -3300,6 +3300,8 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info, if (primitive_info != (PrimitiveInfo *) NULL) primitive_info=(PrimitiveInfo *) RelinquishMagickMemory(primitive_info); primitive=DestroyString(primitive); + if (stops != (StopInfo *) NULL) + stops=(StopInfo *) RelinquishMagickMemory(stops); for ( ; n >= 0; n--) graphic_context[n]=DestroyDrawInfo(graphic_context[n]); graphic_context=(DrawInfo **) RelinquishMagickMemory(graphic_context);