Skip to content
Snippets Groups Projects
Commit 859c3061 authored by Ekho's avatar Ekho
Browse files

Fix truncated image file descriptor leak

parent 1a8734a2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment