2011-03-02 Michael Snyder <msnyder@vmware.com>

* target-descriptions.c (tdesc_gdb_type): No need to call
	xstrdup, callee saves a copy.
This commit is contained in:
Michael Snyder
2011-03-02 23:14:32 +00:00
parent f635986e73
commit 3494b66d76
2 changed files with 4 additions and 1 deletions

View File

@@ -706,7 +706,7 @@ tdesc_gdb_type (struct gdbarch *gdbarch, struct tdesc_type *tdesc_type)
struct tdesc_type_flag *f;
int ix;
type = arch_flags_type (gdbarch, xstrdup (tdesc_type->name),
type = arch_flags_type (gdbarch, tdesc_type->name,
tdesc_type->u.f.size);
for (ix = 0;
VEC_iterate (tdesc_type_flag, tdesc_type->u.f.flags, ix, f);