From: Markus Armbruster Date: Fri, 12 Sep 2014 19:26:23 +0000 (+0200) Subject: qemu-nbd: Destroy the BlockDriverState properly X-Git-Tag: v2.2.0-rc0~67^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e5d7bbeb10b72888e112646ef68b1bea0e4e286d;p=thirdparty%2Fqemu.git qemu-nbd: Destroy the BlockDriverState properly Match the bdrv_new() with a bdrv_unref(), just to be tidy. Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- diff --git a/qemu-nbd.c b/qemu-nbd.c index de9963f8fb9..fa603382d4e 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); }