diff options
author | Hannes Domani <ssbssa@yahoo.de> | 2019-12-26 12:24:45 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-12-26 12:38:49 +1030 |
commit | f5311f250947307f981e2312968a155cec6037e1 (patch) | |
tree | 01927297199d062c7e9c9e35707778705eca97a8 /bfd | |
parent | f096cbc29640157b994dd64aa55363baa53bb3d7 (diff) | |
download | gdb-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/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/peicode.h | 2 |
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 * |