Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix memory leak in ReadYCBCRImage as SetImageExtent failure
  • Loading branch information
jgj212 authored and dlemstra committed Sep 13, 2017
1 parent c76e4e1 commit 241988c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coders/ycbcr.c
Expand Up @@ -212,6 +212,7 @@ static Image *ReadYCBCRImage(const ImageInfo *image_info,
if (status == MagickFalse)
{
quantum_info=DestroyQuantumInfo(quantum_info);
canvas_image=DestroyImage(canvas_image);
return(DestroyImageList(image));
}
SetImageColorspace(image,YCbCrColorspace,exception);
Expand Down

0 comments on commit 241988c

Please sign in to comment.