Skip to content

Commit 241988c

Browse files
jgj212dlemstra
authored andcommitted
fix memory leak in ReadYCBCRImage as SetImageExtent failure
1 parent c76e4e1 commit 241988c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: coders/ycbcr.c

+1
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ static Image *ReadYCBCRImage(const ImageInfo *image_info,
212212
if (status == MagickFalse)
213213
{
214214
quantum_info=DestroyQuantumInfo(quantum_info);
215+
canvas_image=DestroyImage(canvas_image);
215216
return(DestroyImageList(image));
216217
}
217218
SetImageColorspace(image,YCbCrColorspace,exception);

0 commit comments

Comments
 (0)