Received: from eggs.gnu.org ([2001:4830:134:3::10]:42869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDDBD-0002md-Kg for qemu-devel@nongnu.org; Thu, 09 Jul 2015 10:52:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDDB8-0000c2-Uq for qemu-devel@nongnu.org; Thu, 09 Jul 2015 10:52:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDDB8-0000bu-Ow for qemu-devel@nongnu.org; Thu, 09 Jul 2015 10:51:58 -0400 Date: Thu, 9 Jul 2015 11:51:55 -0300 From: Eduardo Habkost Message-ID: <20150709145155.GJ32472@thinpad.lan.raisama.net> References: <1429025304-17422-1-git-send-email-ehabkost@redhat.com> <559E81F7.30606@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <559E81F7.30606@redhat.com> Subject: Re: [Qemu-devel] [PATCH v5] target-i386: Register QOM properties for feature flags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Igor Mammedov , qemu-devel@nongnu.org, Andreas =?iso-8859-1?Q?F=E4rber?= On Thu, Jul 09, 2015 at 04:15:19PM +0200, Paolo Bonzini wrote: > > > On 14/04/2015 17:28, Eduardo Habkost wrote: > > + for (i = 1; names[i]; i++) { > > + feat2prop(names[i]); > > + object_property_add_alias(obj, names[i], obj, names[0], &error_abort); > > The version you committed has a strdup(names[0]) here, but > object_property_add_alias already does a strdup. object_property_add_alias() didn't have a strdup() on June 2. I sent a note about it at: Date: Fri, 22 May 2015 16:13:55 -0300 From: Eduardo Habkost To: qemu-devel@nongnu.org Message-ID: <20150522191355.GG28075@thinpad.lan.raisama.net> Subject: Re: [Qemu-devel] [PATCH v5] target-i386: Register QOM properties for feature flags Now that the object_property_add_alias() patch was merged, we can remove hte g_strdup() call. -- Eduardo