]> git.ipfire.org Git - thirdparty/qemu.git/commit
win32-aio: Fix memory leak
authorKevin Wolf <kwolf@redhat.com>
Wed, 16 Jan 2013 20:20:00 +0000 (21:20 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 21 Jan 2013 19:43:10 +0000 (13:43 -0600)
commit563068a8b2e980713e056512bcd941237f6090fb
treebe4e539268696c37d58b060e1f38ea22a8a0cde2
parentcdb483457cdbd6012e336e40c12b4ace4f6f2a2f
win32-aio: Fix memory leak

The buffer is allocated for both reads and writes, and obviously it
should be freed even if an error occurs.

Cc: qemu-stable@nongnu.org
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit e8bccad5ac6095b5af7946cd72d9aacb57f7c0a3)

Conflicts:

block/win32-aio.c

*addressed conflict due to buggy g_free() still in use instead of
qemu_vfree() as it is upstream (via commit 7479acdb)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/win32-aio.c