aboutsummaryrefslogtreecommitdiff
path: root/target-i386/cpu.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2015-07-09 12:24:43 -0300
committerEduardo Habkost <ehabkost@redhat.com>2015-07-15 17:02:14 -0300
commitd461a44ca4b164549fe19b14d2cdf0524f778ce1 (patch)
tree4fa55ea51b978a9fef6e4cae96abdb4dd20641c1 /target-i386/cpu.c
parent7692401a0826803522cfde533bdcc149932ddc6a (diff)
target-i386: Don't strdup() alias property name
Now object_property_add_alias() calls g_strdup() on the target property name, so we don't need to call g_strdup() ourselves. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target-i386/cpu.c')
-rw-r--r--target-i386/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index f9b1788cbd..1e49a14907 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -3021,7 +3021,7 @@ static void x86_cpu_register_feature_bit_props(X86CPU *cpu,
for (i = 1; names[i]; i++) {
feat2prop(names[i]);
- object_property_add_alias(obj, names[i], obj, g_strdup(names[0]),
+ object_property_add_alias(obj, names[i], obj, names[0],
&error_abort);
}