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:
|
done:
|
||||||
elf_end(re->elf);
|
elf_end(re->elf);
|
||||||
close(fd);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user