From 859c3061ad75ae357c9526af850e86cc156efb82 Mon Sep 17 00:00:00 2001 From: Ekho Date: Mon, 4 Jan 2021 21:16:19 +0000 Subject: Fix truncated image file descriptor leak Fixes https://github.com/derf/feh/issues/580 --- src/imlib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/imlib.c b/src/imlib.c index 2c629f5..35b9bd0 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -238,6 +238,7 @@ int feh_is_image(feh_file * file) return 0; } if (fread(buf, 1, 16, fh) != 16) { + fclose(fh); return 0; } fclose(fh); -- cgit v1.2.3