]> git.proxmox.com Git - qemu.git/commit - qemu-io.c
qemu-io: delete bs instead of leaking it
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Thu, 27 Oct 2011 09:54:26 +0000 (10:54 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Oct 2011 17:25:49 +0000 (19:25 +0200)
commitb46578555c4bce64e3daba4591334aba2d12c156
tree59ff501b5747cfcc6645119ff291c7e1051b58c9
parentc95de7e2c40da4235ceda6d134ae069dae80157e
qemu-io: delete bs instead of leaking it

Using bdrv_close() is not enough to free a BlockDriverState.  Since we
explicitly create it with bdrv_new(), use bdrv_delete() to close and
delete it.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-io.c