[PATCH 1/3] pe_bfd_read_buildid memory leak
Hannes Domani via gdb-patches
gdb-patches@sourceware.org
Tue Dec 24 12:25:00 GMT 2019
bfd/ChangeLog:
2019-12-24 Hannes Domani <ssbssa@yahoo.de>
* peicode.h (pe_bfd_read_buildid): Free data.
---
bfd/peicode.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bfd/peicode.h b/bfd/peicode.h
index e9d205a01a..00ccfa0a44 100644
--- a/bfd/peicode.h
+++ b/bfd/peicode.h
@@ -1396,6 +1396,8 @@ pe_bfd_read_buildid (bfd *abfd)
break;
}
}
+
+ free (data);
}
static const bfd_target *
--
2.24.1
More information about the Gdb-patches
mailing list