Skip to content
Permalink
Browse files Browse the repository at this point in the history
https://github.com/ImageMagick/ImageMagick/issues/571
  • Loading branch information
Cristy committed Jul 17, 2017
1 parent 1885ab1 commit 73b6c35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/cals.c
Expand Up @@ -557,6 +557,7 @@ static MagickBooleanType WriteCALSImage(const ImageInfo *image_info,
group4_image=CloneImage(image,0,0,MagickTrue,exception);
if (group4_image == (Image *) NULL)
{
write_info=DestroyImageInfo(write_info);
(void) CloseBlob(image);
return(MagickFalse);
}
Expand All @@ -565,6 +566,7 @@ static MagickBooleanType WriteCALSImage(const ImageInfo *image_info,
group4_image=DestroyImage(group4_image);
if (group4 == (unsigned char *) NULL)
{
write_info=DestroyImageInfo(write_info);
(void) CloseBlob(image);
return(MagickFalse);
}
Expand Down

0 comments on commit 73b6c35

Please sign in to comment.