From: Eduardo Habkost Date: Thu, 9 Jul 2015 15:24:43 +0000 (-0300) Subject: target-i386: Don't strdup() alias property name X-Git-Tag: qemu-xen-4.7.0-rc1~165^2~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d461a44ca4b164549fe19b14d2cdf0524f778ce1;p=qemu-xen.git 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 --- 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); }