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:
parent
3ae59580a0
commit
e5d7bbeb10
@ -773,7 +773,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
} while (state != TERMINATED);
|
||||
|
||||
bdrv_close(bs);
|
||||
bdrv_unref(bs);
|
||||
if (sockpath) {
|
||||
unlink(sockpath);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user