]> Git Repo - qemu.git/commit - qemu-nbd.c
win32: pair qemu_memalign() with qemu_vfree()
authorHerve Poussineau <[email protected]>
Sun, 24 Jan 2010 21:23:56 +0000 (21:23 +0000)
committerAnthony Liguori <[email protected]>
Tue, 26 Jan 2010 22:41:06 +0000 (16:41 -0600)
commitf8a83245d9ec685bc6aa6173d6765fe03e20688f
treeec0519bd357c16c937ac367dd0111d6f5f9b9d09
parenta35aed57bf47584b5f55b71acf8daba19decf12a
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 <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
block.c
block/raw-posix.c
exec.c
hw/scsi-disk.c
qemu-nbd.c
This page took 0.039135 seconds and 4 git commands to generate.