From f2f1289601402a7424da000632443c7202129db9 Mon Sep 17 00:00:00 2001 From: Mansour Ahmadi Date: Mon, 4 Nov 2019 14:48:13 -0500 Subject: [PATCH] adds a missing TIFFClose in rgb2ycbcr tool --- tools/rgb2ycbcr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rgb2ycbcr.c b/tools/rgb2ycbcr.c index cf5f956f..cb94d458 100644 --- a/tools/rgb2ycbcr.c +++ b/tools/rgb2ycbcr.c @@ -129,6 +129,7 @@ main(int argc, char* argv[]) if (!tiffcvt(in, out) || !TIFFWriteDirectory(out)) { (void) TIFFClose(out); + (void) TIFFClose(in); return (1); } } while (TIFFReadDirectory(in));