Avoid double close() of a file descriptor.
CID: 1006089 Found with: Coverity Prevent(tm) MFC after: 1 week
This commit is contained in:
parent
2545695e6a
commit
b21e986087
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264419
@ -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