commit | abd269b7cf1f084a067731acb8f3272c193cb5f0 | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@redhat.com> | Thu May 08 16:34:48 2014 +0200 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Wed Jun 04 09:56:11 2014 +0200 |
tree | 62f15b0771a9e495eb90be2621e0c3df23060c6a | |
parent | c2f3426c9bba0195b15a919587f794b110a2dcfc [diff] |
block/linux-aio: fix memory and fd leak Hot unplugging -drive aio=native,file=test.img,format=raw images leaves the Linux AIO event notifier and struct qemu_laio_state allocated. Luckily nothing will use the event notifier after the BlockDriverState has been closed so the handler function is never called. It's still worth fixing this resource leak. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>