From: Dirk Lemstra Date: Sat, 7 Apr 2018 13:22:37 +0000 (+0200) Subject: Added missing call to libraw_close (https://bugs.chromium.org/p/oss-fuzz/issues/detai... X-Git-Tag: 7.0.7-29~174 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d42a8452b005b6f94b6d70843aa4da2ef398a0f;p=imagemagick Added missing call to libraw_close (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7331) --- diff --git a/coders/dng.c b/coders/dng.c index f467476fd..9a108d069 100644 --- a/coders/dng.c +++ b/coders/dng.c @@ -304,6 +304,7 @@ static Image *ReadDNGImage(const ImageInfo *image_info,ExceptionInfo *exception) { (void) ThrowMagickException(exception,GetMagickModule(),CoderError, libraw_strerror(errcode),"`%s'",image->filename); + libraw_close(raw_info); return(DestroyImageList(image)); } image->columns=raw_info->sizes.width;