mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
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
1 changed files with 1 additions and 1 deletions
|
@ -773,7 +773,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
} while (state != TERMINATED);
|
} while (state != TERMINATED);
|
||||||
|
|
||||||
bdrv_close(bs);
|
bdrv_unref(bs);
|
||||||
if (sockpath) {
|
if (sockpath) {
|
||||||
unlink(sockpath);
|
unlink(sockpath);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue