]> git.proxmox.com Git - mirror_qemu.git/commit
win32-aio: Fix memory leak
authorKevin Wolf <kwolf@redhat.com>
Wed, 16 Jan 2013 20:20:00 +0000 (21:20 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 17 Jan 2013 09:58:09 +0000 (10:58 +0100)
commite8bccad5ac6095b5af7946cd72d9aacb57f7c0a3
tree7bd3f447e92d76f0ebbe7d5cea70aac2e7191628
parentbcbbd234d42f1111e42b91376db61922d42e7e9e
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>
block/win32-aio.c