summaryrefslogtreecommitdiffstats
path: root/usr.bin/brandelf
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-07-02 03:34:08 +0000
committerimp <imp@FreeBSD.org>2000-07-02 03:34:08 +0000
commit5ca3c881886e9bc78cde628cd37f7fa016f5aaae (patch)
treec22b6aee3bf1bafc268f9ae7e7219e19567d18be /usr.bin/brandelf
parent6e9089a719699fceb32c80919b18a89562035e7f (diff)
downloadFreeBSD-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.c1
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++;
}
OpenPOWER on IntegriCloud