]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/818
authorCristy <urban-warrior@imagemagick.org>
Sat, 30 Sep 2017 15:09:55 +0000 (11:09 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 30 Sep 2017 15:09:55 +0000 (11:09 -0400)
MagickCore/effect.c

index 26763c23d40fa9f265a9871bf9b923064e5bd456..614ae3751ec05b2f8c649fded19217f985ce0182 100644 (file)
@@ -2851,6 +2851,10 @@ MagickExport Image *RotationalBlurImage(const Image *image,const double angle,
   if ((cos_theta == (double *) NULL) ||
       (sin_theta == (double *) NULL))
     {
+      if (cos_theta != (double *) NULL)
+        cos_theta=(double *) RelinquishMagickMemory(cos_theta);
+      if (sin_theta != (double *) NULL)
+        sin_theta=(double *) RelinquishMagickMemory(sin_theta);
       blur_image=DestroyImage(blur_image);
       ThrowImageException(ResourceLimitError,"MemoryAllocationFailed");
     }