|
From: | Consul |
Subject: | [Qemu-devel] Re: [PATCH] SIGSEGV when USE_KQEMU is defined |
Date: | Fri, 20 Feb 2009 09:14:15 -0800 |
User-agent: | Thunderbird 2.0.0.19 (Windows/20081209) |
Consul wrote:
Signed-off-by: Alex Ivanov <address@hidden> $ svn diff Index: block.c =================================================================== --- block.c (revision 6628) +++ block.c (working copy) @@ -1263,7 +1263,7 @@ if (!s->is_write) { qemu_iovec_from_buffer(s->iov, s->bounce, s->iov->size); } - qemu_free(s->bounce); + qemu_vfree(s->bounce); s->this_aiocb->cb(s->this_aiocb->opaque, ret); qemu_aio_release(s->this_aiocb); }
On Windows s->bounce = qemu_memalign(512, nb_sectors * 512); translates to VirtualAlloc and should be freed with VirtualFree (what qemu_vfree does).
[Prev in Thread] | Current Thread | [Next in Thread] |