readelf: Avoid leaking ELF descriptors for archive entries.

CID:		1292494
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2020-03-20 16:24:40 +00:00
parent 388586bcd8
commit c37c6b38b6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359174

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);
}