projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7692401
)
target-i386: Don't strdup() alias property name
author
Eduardo Habkost
<ehabkost@redhat.com>
Thu, 9 Jul 2015 15:24:43 +0000
(12:24 -0300)
committer
Eduardo Habkost
<ehabkost@redhat.com>
Wed, 15 Jul 2015 20:02:14 +0000
(17:02 -0300)
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>
target-i386/cpu.c
patch
|
blob
|
history
diff --git
a/target-i386/cpu.c
b/target-i386/cpu.c
index f9b1788cbda295a9fdd8546d6ef4ae82a184aaea..1e49a14907dffc11fe27ee480af11dbd0b2033f4 100644
(file)
--- 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);
}