the qemu block interface leaks memory every time a read or write request
is issued, this patch fixes it.
This is also the bug that is causing stubdomains to crash under high
disk IO.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
(cherry picked from commit
9c58cf9321f746b223bdd778c49c31ff756b6b1b)
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,