svn commit: r359174 - head/contrib/elftoolchain/readelf
Mark Johnston
markj at FreeBSD.org
Fri Mar 20 16:24:41 UTC 2020
Author: markj
Date: Fri Mar 20 16:24:40 2020
New Revision: 359174
URL: https://svnweb.freebsd.org/changeset/base/359174
Log:
readelf: Avoid leaking ELF descriptors for archive entries.
CID: 1292494
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Modified:
head/contrib/elftoolchain/readelf/readelf.c
Modified: head/contrib/elftoolchain/readelf/readelf.c
==============================================================================
--- head/contrib/elftoolchain/readelf/readelf.c Fri Mar 20 16:24:23 2020 (r359173)
+++ head/contrib/elftoolchain/readelf/readelf.c Fri Mar 20 16:24:40 2020 (r359174)
@@ -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);
}
More information about the svn-src-all
mailing list