From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJLZu-0005NK-Jc for qemu-devel@nongnu.org; Thu, 27 Oct 2011 04:44:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJLZt-00059o-Ic for qemu-devel@nongnu.org; Thu, 27 Oct 2011 04:44:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJLZt-00059k-9R for qemu-devel@nongnu.org; Thu, 27 Oct 2011 04:44:45 -0400 Message-ID: <4EA91AAF.80509@redhat.com> Date: Thu, 27 Oct 2011 10:47:43 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <1319701333-5700-1-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1319701333-5700-1-git-send-email-stefanha@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qemu-io: delete bs instead of leaking it List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org Am 27.10.2011 09:42, schrieb Stefan Hajnoczi: > Using bdrv_close() is not enough to free a BlockDriverState. Since we > explicitly create it with bdrv_new(), use bdrv_delete() to close and > delete it. > > Signed-off-by: Stefan Hajnoczi At the end of main() there's another bdrv_close() call that should be changed. Kevin