From: Hannes Domani Date: Thu, 26 Dec 2019 01:54:45 +0000 (+1030) Subject: pe_bfd_read_buildid memory leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5311f250947307f981e2312968a155cec6037e1;p=binutils-gdb.git pe_bfd_read_buildid memory leak * peicode.h (pe_bfd_read_buildid): Free data. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 073bbb6f2b2..cf8dbdc5805 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2019-12-26 Hannes Domani + + * peicode.h (pe_bfd_read_buildid): Free data. + 2019-12-23 Alan Modra * vms-alpha.c (add_symbol): Add "max" parameter. Error on string diff --git a/bfd/peicode.h b/bfd/peicode.h index e9d205a01a1..00ccfa0a444 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 *