mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357540
|
@ -7247,7 +7247,6 @@ dump_object(struct readelf *re, int fd)
|
|||
|
||||
done:
|
||||
elf_end(re->elf);
|
||||
close(fd);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue