diff options
author | brueffer <brueffer@FreeBSD.org> | 2014-04-22 21:25:03 +0000 |
---|---|---|
committer | brueffer <brueffer@FreeBSD.org> | 2014-04-22 21:25:03 +0000 |
commit | 47b4d0222ce0fd55f9617976ea382e89af16e524 (patch) | |
tree | 2a76163daed64ebe11b8fa71e40def4389d6754b | |
parent | daa5b9ec25e46147a148026a88988a2f3fd3db80 (diff) | |
download | FreeBSD-src-47b4d0222ce0fd55f9617976ea382e89af16e524.zip FreeBSD-src-47b4d0222ce0fd55f9617976ea382e89af16e524.tar.gz |
MFC: r264419
Avoid double close() of a file descriptor.
CID: 1006089
Found with: Coverity Prevent(tm)
-rw-r--r-- | usr.bin/ldd/sods.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/usr.bin/ldd/sods.c b/usr.bin/ldd/sods.c index adf0f4f..7e69cec 100644 --- a/usr.bin/ldd/sods.c +++ b/usr.bin/ldd/sods.c @@ -204,7 +204,6 @@ dump_file(const char *fname) warnx("%s: this is an ELF program; use objdump to examine", fname); ++error_count; munmap(objbase, sb.st_size); - close(fd); return; } |