diff options
author | Alan Modra <amodra@gmail.com> | 2023-12-15 12:24:56 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-12-15 12:56:45 +1030 |
commit | 4ace84a15ca943f52e590c264d82dfba350482e3 (patch) | |
tree | f852ce970fbabb72857fef066c82d9b8e1c2dfeb /bfd/bfd.c | |
parent | e838a672aa787fb593d4819fa4836cad7db49e66 (diff) | |
download | gdb-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |