Re: [Qemu-devel] [PATCH] qemu-io: delete bs instead of leaking it

2011-10-27 Thread Kevin Wolf
Am 27.10.2011 09:42, schrieb Stefan Hajnoczi: 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 stefa...@linux.vnet.ibm.com At the end of main() there's

[Qemu-devel] [PATCH] qemu-io: delete bs instead of leaking it

2011-10-27 Thread Stefan Hajnoczi
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 stefa...@linux.vnet.ibm.com --- qemu-io.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git