diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-02 22:52:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-02 22:52:23 +0200 |
commit | c1075d6af72cf3a6d137d52ad8d7d168633efb7a (patch) | |
tree | 9f639c77aadd05a7e7a2730f1a81fc8eba16e233 /tools/ffhash.c | |
parent | de488525e5932235813e6d5f30a7554bf927a87a (diff) | |
download | ffmpeg-c1075d6af72cf3a6d137d52ad8d7d168633efb7a.tar.gz |
tools/ffhash: close file handle on error
Fixes CID1026768
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools/ffhash.c')
-rw-r--r-- | tools/ffhash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/ffhash.c b/tools/ffhash.c index 8c4a9f1b0b..00a2872717 100644 --- a/tools/ffhash.c +++ b/tools/ffhash.c @@ -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; |