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.
+2019-01-04 Nick Clifton <nickc@redhat.com>
+
+ 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.
+
2019-01-01 Alan Modra <amodra@gmail.com>
Update year range in copyright notice of all files.
if (convert_debugging && dhandle != NULL)
{
- if (! write_debugging_info (obfd, dhandle, &symcount, &osympp))
+ bfd_boolean res;
+
+ res = write_debugging_info (obfd, dhandle, &symcount, &osympp);
+
+ free (dhandle);
+ dhandle = NULL; /* Paranoia... */
+
+ if (! res)
{
status = 1;
return FALSE;
bfd_get_filename (abfd));
exit_status = 1;
}
+
+ free (dhandle);
}
/* PR 6483: If there was no STABS debug info in the file, try
DWARF instead. */