target-i386: Don't strdup() alias property name
PATCH 1/1 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 <[email protected]>
--- target-i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target-i386/cpu.c +1 -1
@@ -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); }
Signature · 1 line
2.1.0
Eduardo Habkost
AppliedQuoted 4 lines · Eduardo Habkost
Now
object_property_add_alias()callsg_strdup()on the target property name, so we don't need to callg_strdup()ourselves.Signed-off-by Eduardo Habkost <[email protected]>
Applied to the x86 tree.
Signature · 1 line
Eduardo