mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 17:52:43 +00:00
MFC: r264419
Avoid double close() of a file descriptor. CID: 1006089 Found with: Coverity Prevent(tm)
This commit is contained in:
parent
e22552c902
commit
1f28145fba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=264785
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user