Use malloc/free in the dbgapi callbacks
[deliverable/binutils-gdb.git] / bfd / peicode.h
index e9d205a01a10437a95fc15c85094ddc5985e26c4..ed0c544d856581635af37eb9b12a0c15fdca291f 100644 (file)
@@ -1,5 +1,5 @@
 /* Support for the generic parts of PE/PEI, for BFD.
-   Copyright (C) 1995-2019 Free Software Foundation, Inc.
+   Copyright (C) 1995-2020 Free Software Foundation, Inc.
    Written by Cygnus Solutions.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -1396,6 +1396,8 @@ pe_bfd_read_buildid (bfd *abfd)
          break;
        }
     }
+
+  free (data);
 }
 
 static const bfd_target *
This page took 0.023638 seconds and 4 git commands to generate.