From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdiYv-0001fc-Jy for qemu-devel@nongnu.org; Tue, 05 Nov 2013 10:29:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdiYn-0007Bu-2M for qemu-devel@nongnu.org; Tue, 05 Nov 2013 10:29:01 -0500 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:34952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdiYm-0007Bc-RZ for qemu-devel@nongnu.org; Tue, 05 Nov 2013 10:28:52 -0500 Received: by mail-wi0-f180.google.com with SMTP id ey11so2244895wid.1 for ; Tue, 05 Nov 2013 07:28:52 -0800 (PST) Date: Tue, 5 Nov 2013 16:28:49 +0100 From: Stefan Hajnoczi Message-ID: <20131105152849.GB20474@stefanha-thinkpad.redhat.com> References: <1383141276-19230-1-git-send-email-stefanha@redhat.com> <1383141276-19230-3-git-send-email-stefanha@redhat.com> <5278DB86.2010801@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5278DB86.2010801@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 2/7] qdev: unref qdev when device_add fails List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Paolo Bonzini , Markus Armbruster , qemu-devel@nongnu.org, Stefan Hajnoczi , Andreas Faerber On Tue, Nov 05, 2013 at 04:50:30AM -0700, Eric Blake wrote: > On 10/30/2013 07:54 AM, Stefan Hajnoczi wrote: > > qdev_device_add() leaks the created qdev upon failure. I suspect this > > problem crept in because qdev_free() unparents the qdev but does not > > drop a reference - confusing name. > > Is it worth renaming in a future patch? Yep, the last patch does that.