This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] objfiles.c (free_objfile): Move comment.
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 24 Sep 2013 17:16:16 -0700
- Subject: [commit] objfiles.c (free_objfile): Move comment.
- Authentication-results: sourceware.org; auth=none
Hi.
fyi, committed.
2013-09-24 Doug Evans <dje@google.com>
* objfiles.c (free_objfile): Move comment.
diff -u -p -r1.163 objfiles.c
--- objfiles.c 20 Aug 2013 15:04:51 -0000 1.163
+++ objfiles.c 25 Sep 2013 00:14:04 -0000
@@ -642,8 +642,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)
@@ -657,6 +655,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);
}