Commit c1075d6a authored by Michael Niedermayer's avatar Michael Niedermayer

tools/ffhash: close file handle on error

Fixes CID1026768
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent de488525
......@@ -89,6 +89,7 @@ static int check(char *file)
for (;;) {
ssize_t size = read(fd, buffer, SIZE);
if (size < 0) {
close(fd);
finish();
printf("+READ-FAILED: %s", strerror(errno));
ret = 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment