Close filedescriptors when done with them.
This commit is contained in:
parent
ea5776ec47
commit
5ddaf8458e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346369
@ -247,7 +247,9 @@ main(int argc, char *argv[])
|
|||||||
err(1, "capsicum");
|
err(1, "capsicum");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if ((p = Algorithm[digest].Fd(fd, buf)) == NULL) {
|
p = Algorithm[digest].Fd(fd, buf);
|
||||||
|
(void)close(fd);
|
||||||
|
if (p == NULL) {
|
||||||
warn("%s", *argv);
|
warn("%s", *argv);
|
||||||
failed++;
|
failed++;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user