summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/imlib.c1
1 files changed, 1 insertions, 0 deletions
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);