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:
Mark Johnston 2020-02-04 21:18:16 +00:00
parent b7fc41b3ca
commit dfa169049b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357540

View File

@ -7247,7 +7247,6 @@ dump_object(struct readelf *re, int fd)
done:
elf_end(re->elf);
close(fd);
}
static void