diff options
author | imp <imp@FreeBSD.org> | 2000-07-02 03:34:08 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2000-07-02 03:34:08 +0000 |
commit | 5ca3c881886e9bc78cde628cd37f7fa016f5aaae (patch) | |
tree | c22b6aee3bf1bafc268f9ae7e7219e19567d18be /usr.bin/brandelf | |
parent | 6e9089a719699fceb32c80919b18a89562035e7f (diff) | |
download | FreeBSD-src-5ca3c881886e9bc78cde628cd37f7fa016f5aaae.zip FreeBSD-src-5ca3c881886e9bc78cde628cd37f7fa016f5aaae.tar.gz |
fix fd leak by close(fd) at end of loop.
Diffstat (limited to 'usr.bin/brandelf')
-rw-r--r-- | usr.bin/brandelf/brandelf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/brandelf/brandelf.c b/usr.bin/brandelf/brandelf.c index 8c6fae5..3ae4bdf 100644 --- a/usr.bin/brandelf/brandelf.c +++ b/usr.bin/brandelf/brandelf.c @@ -150,6 +150,7 @@ main(int argc, char **argv) } } fail: + close(fd); argc--; argv++; } |