This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] pe_bfd_read_buildid memory leak
- From: "Hannes Domani via binutils" <binutils at sourceware dot org>
- To: binutils at sourceware dot org
- Date: Wed, 25 Dec 2019 15:01:56 +0100
- Subject: [PATCH] pe_bfd_read_buildid memory leak
- References: <20191225140156.1784-1-ssbssa.ref@yahoo.de>
- Reply-to: Hannes Domani <ssbssa at yahoo dot de>
bfd/ChangeLog:
2019-12-24 Hannes Domani <ssbssa@yahoo.de>
* peicode.h (pe_bfd_read_buildid): Free data.
---
bfd/peicode.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bfd/peicode.h b/bfd/peicode.h
index e9d205a01a..00ccfa0a44 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 *
--
2.24.1