aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorHannes Domani <ssbssa@yahoo.de>2019-12-26 12:24:45 +1030
committerAlan Modra <amodra@gmail.com>2019-12-26 12:38:49 +1030
commitf5311f250947307f981e2312968a155cec6037e1 (patch)
tree01927297199d062c7e9c9e35707778705eca97a8 /bfd
parentf096cbc29640157b994dd64aa55363baa53bb3d7 (diff)
downloadgdb-f5311f250947307f981e2312968a155cec6037e1.zip
gdb-f5311f250947307f981e2312968a155cec6037e1.tar.gz
gdb-f5311f250947307f981e2312968a155cec6037e1.tar.bz2
pe_bfd_read_buildid memory leak
* peicode.h (pe_bfd_read_buildid): Free data.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/peicode.h2
2 files changed, 6 insertions, 0 deletions
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 *