readelf: Avoid leaking ELF descriptors for archive entries.

CID:		1292494
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
markj 2020-03-20 16:24:40 +00:00
parent e647eb1bb0
commit b2d64c4e8f

View File

@ -7256,6 +7256,7 @@ dump_ar(struct readelf *re, int fd)
}
printf("Binary %s(%s) contains:\n",
re->filename, arhdr->ar_name);
elf_end(e);
}
printf("\t%s\n", arsym[i].as_name);
}