summaryrefslogtreecommitdiff
path: root/gdb/jit.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-22 16:44:44 +0000
committerTom Tromey <tromey@redhat.com>2012-08-22 16:44:44 +0000
commit694f471701aa8adac8f09a31bc713397bdb315bf (patch)
tree8c1805fa5d9c6a1c8696f149e8c588e021a91839 /gdb/jit.c
parent775f009526211c189caf7d39f6210f87264e7eff (diff)
downloadgdb-694f471701aa8adac8f09a31bc713397bdb315bf.tar.gz
* jit.c (jit_object_close_impl): Don't malloc the objfile
name. * objfiles.c (allocate_objfile): Don't malloc the objfile name. (free_objfile): Don't free the objfile name. * objfiles.h (struct objfile) <name>: Update comment. * symfile.c (reread_symbols): Fix reference counting. Don't malloc objfile name.
Diffstat (limited to 'gdb/jit.c')
-rw-r--r--gdb/jit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/jit.c b/gdb/jit.c
index 26de1896016..9e8f295c813 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -761,8 +761,7 @@ jit_object_close_impl (struct gdb_symbol_callbacks *cb,
terminate_minimal_symbol_table (objfile);
- xfree (objfile->name);
- objfile->name = xstrdup ("<< JIT compiled code >>");
+ objfile->name = "<< JIT compiled code >>";
j = NULL;
for (i = obj->symtabs; i; i = j)