aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-12-15 12:24:56 +1030
committerAlan Modra <amodra@gmail.com>2023-12-15 12:56:45 +1030
commit4ace84a15ca943f52e590c264d82dfba350482e3 (patch)
treef852ce970fbabb72857fef066c82d9b8e1c2dfeb /bfd/bfd.c
parente838a672aa787fb593d4819fa4836cad7db49e66 (diff)
downloadgdb-4ace84a15ca943f52e590c264d82dfba350482e3.zip
gdb-4ace84a15ca943f52e590c264d82dfba350482e3.tar.gz
gdb-4ace84a15ca943f52e590c264d82dfba350482e3.tar.bz2
PR31145, potential memory leak in binutils/ld
PR 31145 * bfd.c (BFD_IN_MEMORY): Mention that bim is malloc'd. * format.c (io_reinit): Free BFD_IN_MEMORY iostream. * opncls.c (_bfd_delete_bfd): Likewise. (bfd_make_readable): Delete unnecessary code. * bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r--bfd/bfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/bfd.c b/bfd/bfd.c
index 616ded3..a5df4ef 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -160,8 +160,8 @@ CODE_FRAGMENT
.#define BFD_TRADITIONAL_FORMAT 0x400
.
. {* This flag indicates that the BFD contents are actually cached
-. in memory. If this is set, iostream points to a bfd_in_memory
-. struct. *}
+. in memory. If this is set, iostream points to a malloc'd
+. bfd_in_memory struct. *}
.#define BFD_IN_MEMORY 0x800
.
. {* This BFD has been created by the linker and doesn't correspond