From 3445483e7838719d3feb0a6daf0fa9290b0cfb3f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 2 Apr 2014 19:40:11 +0100 Subject: [PATCH] Close file on error path. --- framebuffer/convert_image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/framebuffer/convert_image.c b/framebuffer/convert_image.c index bf47a3515..838a90703 100644 --- a/framebuffer/convert_image.c +++ b/framebuffer/convert_image.c @@ -159,6 +159,7 @@ main(int argc, char **argv) if (br < 0) { printf("Error reading input: %s\n", strerror(errno)); + fclose(f); return 1; }