]> xenbits.xensource.com Git - qemu-xen-4.4-testing.git/commitdiff
revert "fix qemu memory leak in block interface"
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 7 Oct 2009 14:34:26 +0000 (15:34 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 7 Oct 2009 14:34:26 +0000 (15:34 +0100)
"fix qemu memory leak in block interface" is not going to be needed any
more thanks to the refactoring of the block layer.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
block.c

diff --git a/block.c b/block.c
index 6ce453c762cfb4abd53bf222fbaa81d0cd1c6101..36f5eb919dc29d40475982ceecf4789b4f21c585 100644 (file)
--- a/block.c
+++ b/block.c
@@ -1378,7 +1378,6 @@ static void bdrv_aio_rw_vector_cb(void *opaque, int ret)
     qemu_vfree(s->bounce);
     s->this_aiocb->cb(s->this_aiocb->opaque, ret);
     qemu_aio_release(s->this_aiocb);
-    qemu_free(s);
 }
 
 static BlockDriverAIOCB *bdrv_aio_rw_vector(BlockDriverState *bs,