commit | b46578555c4bce64e3daba4591334aba2d12c156 | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | Thu Oct 27 10:54:26 2011 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri Oct 28 19:25:49 2011 +0200 |
tree | 59ff501b5747cfcc6645119ff291c7e1051b58c9 | |
parent | c95de7e2c40da4235ceda6d134ae069dae80157e [diff] |
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>