Received: from eggs.gnu.org ([2001:4830:134:3::10]:48614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuPOR-0002DT-I6 for qemu-devel@nongnu.org; Mon, 18 May 2015 14:04:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuPOM-0004t3-MP for qemu-devel@nongnu.org; Mon, 18 May 2015 14:03:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuPOM-0004sw-Dc for qemu-devel@nongnu.org; Mon, 18 May 2015 14:03:54 -0400 Date: Mon, 18 May 2015 15:03:50 -0300 From: Eduardo Habkost Message-ID: <20150518180350.GB28075@thinpad.lan.raisama.net> References: <1428609450-29812-1-git-send-email-ehabkost@redhat.com> <5526DF6F.3070908@redhat.com> <552701BE.1040500@suse.de> <553EFB93.6020101@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <553EFB93.6020101@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 0/2] qom: strdup() target_name on object_property_add_alias() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Paolo Bonzini , Peter Crosthwaite , qemu-devel@nongnu.org, Stefan Hajnoczi On Tue, Apr 28, 2015 at 05:16:35AM +0200, Andreas F=E4rber wrote: > Am 10.04.2015 um 00:48 schrieb Andreas F=E4rber: > > Am 09.04.2015 um 22:22 schrieb Paolo Bonzini: > >> On 09/04/2015 21:57, Eduardo Habkost wrote: > >>> This helps us avoid memory leaks when using object_property_add_ali= as(), as it > >>> is not practical for callers to save target_name to free it later. > >>> > >>> Eduardo Habkost (2): > >>> qom: strdup() target property name on object_property_add_alias() > >>> qdev: Free property names after registering gpio aliases > >>> > >>> hw/core/qdev.c | 2 ++ > >>> qom/object.c | 5 +++-- > >>> 2 files changed, 5 insertions(+), 2 deletions(-) > >>> > >> > >> Good idea! > >> > >> Reviewed-by: Paolo Bonzini > >=20 > > Looks good to me in general, I'm just surprised that there are not mo= re > > cleanups resulting out of this? At least my pc87312 series will need > > changes then. Will take a deeper look another day. >=20 > Thanks, applied to qom-next: > https://github.com/afaerber/qemu-cpu/commits/qom-next Thanks. Is it expected to appear in a pull request soon? This is needed for the X86CPU properties patch that's on the x86 queue. --=20 Eduardo