OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ae5958
)
qemu-nbd: Destroy the BlockDriverState properly
author
Markus Armbruster
<armbru@redhat.com>
Fri, 12 Sep 2014 19:26:23 +0000
(21:26 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Thu, 25 Sep 2014 13:24:14 +0000
(15:24 +0200)
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>
qemu-nbd.c
patch
|
blob
|
history
diff --git
a/qemu-nbd.c
b/qemu-nbd.c
index
de9963f
..
fa60338
100644
(file)
--- 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);
}