]> git.proxmox.com Git - qemu.git/commit
win32: pair qemu_memalign() with qemu_vfree()
authorHerve Poussineau <hpoussin@reactos.org>
Sun, 24 Jan 2010 21:23:56 +0000 (21:23 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 27 Jan 2010 00:09:22 +0000 (18:09 -0600)
commita1a86bf902f4359d1556fb37a5443024b42898f4
treedd755cc440c9eebebbed284badfe56d50365256e
parentc727a054594b1c94177373680408fbf4ee92d3f1
win32: pair qemu_memalign() with qemu_vfree()

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 <hpoussin@reactos.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit f8a83245d9ec685bc6aa6173d6765fe03e20688f)
block.c
block/raw-posix.c
exec.c
hw/scsi-disk.c
qemu-nbd.c