pe_bfd_read_buildid memory leak
authorHannes Domani <ssbssa@yahoo.de>
Thu, 26 Dec 2019 01:54:45 +0000 (12:24 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 26 Dec 2019 02:08:49 +0000 (12:38 +1030)
* peicode.h (pe_bfd_read_buildid): Free data.

bfd/ChangeLog
bfd/peicode.h

index 073bbb6f2b2321bec85f6a9136f8c0bf769c2334..cf8dbdc58056ed020faee5602e4d011e548407ae 100644 (file)
@@ -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
index e9d205a01a10437a95fc15c85094ddc5985e26c4..00ccfa0a4445704a1d75f6f3c5c6775f3c88ce9e 100644 (file)
@@ -1396,6 +1396,8 @@ pe_bfd_read_buildid (bfd *abfd)
          break;
        }
     }
+
+  free (data);
 }
 
 static const bfd_target *