readelf: Fix a double close of the input file.
The caller of dump_object() is responsible for opening the file, let it be responsible for closing too. CID: 1411588 MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
b7fc41b3ca
commit
dfa169049b
@ -7247,7 +7247,6 @@ dump_object(struct readelf *re, int fd)
|
||||
|
||||
done:
|
||||
elf_end(re->elf);
|
||||
close(fd);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user