[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [qemu-xen-3.4-testing] fix qemu memory leak in block interface

commit 0b72af8d1ca59f6ffe8db4a8bcf8b56d3d7e24fe
Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Date:   Fri Sep 4 16:12:28 2009 +0100

    fix qemu memory leak in block interface
    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@xxxxxxxxxxxxx>
    (cherry picked from commit 9c58cf9321f746b223bdd778c49c31ff756b6b1b)
 block.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/block.c b/block.c
index 36f5eb9..6ce453c 100644
--- a/block.c
+++ b/block.c
@@ -1378,6 +1378,7 @@ static void bdrv_aio_rw_vector_cb(void *opaque, int ret)
     s->this_aiocb->cb(s->this_aiocb->opaque, ret);
+    qemu_free(s);
 static BlockDriverAIOCB *bdrv_aio_rw_vector(BlockDriverState *bs,
generated by git-patchbot for /home/xen/git/qemu-xen-3.4-testing.git

Xen-changelog mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.