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