From: Dirk Lemstra Date: Sun, 22 Apr 2018 17:15:23 +0000 (+0200) Subject: Fixed memory leak (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7934). X-Git-Tag: 7.0.7-29~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08c8e06238fce3fe39eb3a206bd4b34ece705768;p=imagemagick Fixed memory leak (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7934). --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 07d118dee..8464538f4 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -1771,7 +1771,7 @@ static char *GetGroupByURL(const char *primitive,const char *url) } } if (start == (const char *) NULL) - return((char *) NULL); + return(DestroyString(token)); (void) CopyMagickString(token,start,length); return(token); }