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:
parent
677bd4c69d
commit
cf0ad5bbf2
3 changed files with 18 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue