mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-30 15:56:36 +08:00
* breakpoint.c (bpstat_check_breakpoint_conditions): Use
value_mark and value_free_to_mark. * objfiles.c (free_objfile): Call objfile_free_data before freeing the BFD.
This commit is contained in:
@ -422,6 +422,9 @@ free_objfile (struct objfile *objfile)
|
||||
(*objfile->sf->sym_finish) (objfile);
|
||||
}
|
||||
|
||||
/* Discard any data modules have associated with the objfile. */
|
||||
objfile_free_data (objfile);
|
||||
|
||||
/* We always close the bfd, unless the OBJF_KEEPBFD flag is set. */
|
||||
|
||||
if (objfile->obfd != NULL && !(objfile->flags & OBJF_KEEPBFD))
|
||||
@ -476,7 +479,6 @@ free_objfile (struct objfile *objfile)
|
||||
|
||||
/* The last thing we do is free the objfile struct itself. */
|
||||
|
||||
objfile_free_data (objfile);
|
||||
if (objfile->name != NULL)
|
||||
{
|
||||
xfree (objfile->name);
|
||||
|
Reference in New Issue
Block a user