qemu-nbd: Destroy the BlockDriverState properly

Match the bdrv_new() with a bdrv_unref(), just to be tidy.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Markus Armbruster 2014-09-12 21:26:23 +02:00 committed by Kevin Wolf
parent 3ae59580a0
commit e5d7bbeb10

View File

@ -773,7 +773,7 @@ int main(int argc, char **argv)
}
} while (state != TERMINATED);
bdrv_close(bs);
bdrv_unref(bs);
if (sockpath) {
unlink(sockpath);
}