From: Markus Armbruster Date: Fri, 12 Sep 2014 19:26:23 +0000 (+0200) Subject: qemu-nbd: Destroy the BlockDriverState properly X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e5d7bbeb10b72888e112646ef68b1bea0e4e286d;p=qemu.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 de9963f8fb..fa603382d4 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); }