svn commit: r359175 - head/contrib/elftoolchain/readelf
Mark Johnston
markj at FreeBSD.org
Fri Mar 20 16:24:57 UTC 2020
Author: markj
Date: Fri Mar 20 16:24:53 2020
New Revision: 359175
URL: https://svnweb.freebsd.org/changeset/base/359175
Log:
readelf: Fix another instance of the leak mentioned in r357542.
CID: 1292493
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:40 2020 (r359174)
+++ head/contrib/elftoolchain/readelf/readelf.c Fri Mar 20 16:24:53 2020 (r359175)
@@ -6065,6 +6065,7 @@ dump_dwarf_frame_regtable(struct readelf *re, Dwarf_Fd
for (; cur_pc < end_pc; cur_pc++) {
if (dwarf_get_fde_info_for_all_regs(fde, cur_pc, &rt, &row_pc,
&de) != DW_DLV_OK) {
+ free(vec);
warnx("dwarf_get_fde_info_for_all_regs failed: %s\n",
dwarf_errmsg(de));
return (-1);
More information about the svn-src-head
mailing list