]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 2 Sep 2012 23:54:31 +0000 (23:54 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 2 Sep 2012 23:54:31 +0000 (23:54 +0000)
MagickCore/constitute.c

index 8c4973765be4c6dd7e104105d7b80f27f28a855d..c50b7e908a36a42765bd88644f0c58120a0010b6 100644 (file)
@@ -1063,6 +1063,7 @@ MagickExport MagickBooleanType WriteImage(const ImageInfo *image_info,
   if (IsRightsAuthorized(domain,rights,write_info->magick) == MagickFalse)
     {
       sans_exception=DestroyExceptionInfo(sans_exception);
+      write_info=DestroyImageInfo(write_info);
       errno=EPERM;
       ThrowBinaryException(PolicyError,"NotAuthorized",filename);
     }