fix fd leak by close(fd) at end of loop.
This commit is contained in:
parent
f8ca1b7655
commit
9fb5801442
@ -150,6 +150,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
fail:
|
||||
close(fd);
|
||||
argc--;
|
||||
argv++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user