From: Doug Evans Date: Wed, 25 Sep 2013 00:15:30 +0000 (+0000) Subject: * objfiles.c (free_objfile): Move comment. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=020f703635b9a8dcc29dce41a682b99bde1e8c74;p=binutils-gdb.git * objfiles.c (free_objfile): Move comment. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 582ce913b14..1d3d96fed5b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-09-24 Doug Evans + + * objfiles.c (free_objfile): Move comment. + 2013-09-24 Joel Brobecker * ada-exp.y (string_to_operator): Delete. diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 6585c3ff0ed..59ab632f737 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -645,8 +645,6 @@ free_objfile (struct objfile *objfile) clear_current_source_symtab_and_line (); } - /* The last thing we do is free the objfile struct itself. */ - if (objfile->global_psymbols.list) xfree (objfile->global_psymbols.list); if (objfile->static_psymbols.list) @@ -660,6 +658,7 @@ free_objfile (struct objfile *objfile) /* Rebuild section map next time we need it. */ get_objfile_pspace_data (objfile->pspace)->section_map_dirty = 1; + /* The last thing we do is free the objfile struct itself. */ xfree (objfile); }