From 6d42a8452b005b6f94b6d70843aa4da2ef398a0f Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sat, 7 Apr 2018 15:22:37 +0200 Subject: [PATCH] Added missing call to libraw_close (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7331) --- coders/dng.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.40.0