Received: from eggs.gnu.org ([2001:4830:134:3::10]:56103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDDow-0003G7-PJ for qemu-devel@nongnu.org; Thu, 09 Jul 2015 11:33:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDDor-0004Ni-MG for qemu-devel@nongnu.org; Thu, 09 Jul 2015 11:33:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDDor-0004Na-HS for qemu-devel@nongnu.org; Thu, 09 Jul 2015 11:33:01 -0400 From: Eduardo Habkost Date: Thu, 9 Jul 2015 12:32:56 -0300 Message-Id: <1436455976-17725-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH] target-i386: Don't strdup() alias property name List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= 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 --- target-i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index b4f9461..9cd1318 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); } -- 2.1.0