Close filedescriptors when done with them.
This commit is contained in:
parent
9454609db3
commit
55a254f773
@ -247,7 +247,9 @@ main(int argc, char *argv[])
|
||||
err(1, "capsicum");
|
||||
#endif
|
||||
}
|
||||
if ((p = Algorithm[digest].Fd(fd, buf)) == NULL) {
|
||||
p = Algorithm[digest].Fd(fd, buf);
|
||||
(void)close(fd);
|
||||
if (p == NULL) {
|
||||
warn("%s", *argv);
|
||||
failed++;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user