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

View File

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