[binutils-gdb] pe_bfd_read_buildid memory leak
Alan Modra
amodra@sourceware.org
Thu Dec 26 05:45:00 GMT 2019
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f5311f250947307f981e2312968a155cec6037e1
commit f5311f250947307f981e2312968a155cec6037e1
Author: Hannes Domani <ssbssa@yahoo.de>
Date: Thu Dec 26 12:24:45 2019 +1030
pe_bfd_read_buildid memory leak
* peicode.h (pe_bfd_read_buildid): Free data.
Diff:
---
bfd/ChangeLog | 4 ++++
bfd/peicode.h | 2 ++
2 files changed, 6 insertions(+)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 073bbb6..cf8dbdc 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2019-12-26 Hannes Domani <ssbssa@yahoo.de>
+
+ * peicode.h (pe_bfd_read_buildid): Free data.
+
2019-12-23 Alan Modra <amodra@gmail.com>
* vms-alpha.c (add_symbol): Add "max" parameter. Error on string
diff --git a/bfd/peicode.h b/bfd/peicode.h
index e9d205a..00ccfa0 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 *
More information about the Binutils-cvs
mailing list