Re: [Qemu-devel] [PATCH] win32: pair qemu_memalign() with qemu_vfree()

2010-01-26 Thread Anthony Liguori
On 01/24/2010 03:23 PM, Herve Poussineau wrote: Win32 suffers from a very big memory leak when dealing with SCSI devices. Each read/write request allocates memory with qemu_memalign (ie VirtualAlloc) but frees it with qemu_free (ie free). Pair all qemu_memalign() calls with qemu_vfree() to preven

[Qemu-devel] [PATCH] win32: pair qemu_memalign() with qemu_vfree()

2010-01-24 Thread Herve Poussineau
Win32 suffers from a very big memory leak when dealing with SCSI devices. Each read/write request allocates memory with qemu_memalign (ie VirtualAlloc) but frees it with qemu_free (ie free). Pair all qemu_memalign() calls with qemu_vfree() to prevent such leaks. Signed-off-by: Herve Poussineau --