From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFTHC-0007hG-G6 for qemu-devel@nongnu.org; Wed, 15 Jul 2015 16:27:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFTH7-0005Kv-HF for qemu-devel@nongnu.org; Wed, 15 Jul 2015 16:27:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFTH7-0005Kc-Bn for qemu-devel@nongnu.org; Wed, 15 Jul 2015 16:27:29 -0400 From: Eduardo Habkost Date: Wed, 15 Jul 2015 17:27:20 -0300 Message-Id: <1436992041-32767-2-git-send-email-ehabkost@redhat.com> In-Reply-To: <1436992041-32767-1-git-send-email-ehabkost@redhat.com> References: <1436992041-32767-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PULL 1/2] target-i386: Don't strdup() alias property name List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , Richard Henderson , qemu-devel@nongnu.org, =?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 f9b1788..1e49a14 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