mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
Fix ridiculously small memory leak.
PR 24001 * objcopy.c (copy_object): Free dhandle after writing out the debug information. * objdump.c (dump_bfd): Free dhandle after printing out the debug information.
This commit is contained in:
@ -3692,6 +3692,8 @@ dump_bfd (bfd *abfd)
|
||||
bfd_get_filename (abfd));
|
||||
exit_status = 1;
|
||||
}
|
||||
|
||||
free (dhandle);
|
||||
}
|
||||
/* PR 6483: If there was no STABS debug info in the file, try
|
||||
DWARF instead. */
|
||||
|
Reference in New Issue
Block a user