]> granicus.if.org Git - imagemagick/commitdiff
Added missing call to libraw_close (https://bugs.chromium.org/p/oss-fuzz/issues/detai...
authorDirk Lemstra <dirk@git.imagemagick.org>
Sat, 7 Apr 2018 13:22:37 +0000 (15:22 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sat, 7 Apr 2018 13:24:31 +0000 (15:24 +0200)
coders/dng.c

index f467476fd8b3a10922a5fbe8119f1913cafc85fb..9a108d0698ff1a9fe485afe2324e899e9cb52bd4 100644 (file)
@@ -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;