From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXajf-0001Mc-0C for qemu-devel@nongnu.org; Fri, 26 Sep 2014 14:59:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXajY-0002cz-SU for qemu-devel@nongnu.org; Fri, 26 Sep 2014 14:59:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXajY-0002bh-MG for qemu-devel@nongnu.org; Fri, 26 Sep 2014 14:59:12 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8QIx60L022221 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 26 Sep 2014 14:59:07 -0400 From: Kevin Wolf Date: Fri, 26 Sep 2014 20:58:50 +0200 Message-Id: <1411757937-9087-5-git-send-email-kwolf@redhat.com> In-Reply-To: <1411757937-9087-1-git-send-email-kwolf@redhat.com> References: <1411757937-9087-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PULL 04/11] qemu-nbd: Destroy the BlockDriverState properly List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com From: Markus Armbruster Match the bdrv_new() with a bdrv_unref(), just to be tidy. Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- qemu-nbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-nbd.c b/qemu-nbd.c index de9963f..fa60338 100644 --- a/qemu-nbd.c +++ b/qemu-nbd.c @@ -773,7 +773,7 @@ int main(int argc, char **argv) } } while (state != TERMINATED); - bdrv_close(bs); + bdrv_unref(bs); if (sockpath) { unlink(sockpath); } -- 1.8.3.1