diff options
-rw-r--r-- | block/linux-aio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block/linux-aio.c b/block/linux-aio.c index 48673690ac..7ac7e8c99c 100644 --- a/block/linux-aio.c +++ b/block/linux-aio.c @@ -310,5 +310,10 @@ void laio_cleanup(void *s_) struct qemu_laio_state *s = s_; event_notifier_cleanup(&s->e); + + if (io_destroy(s->ctx) != 0) { + fprintf(stderr, "%s: destroy AIO context %p failed\n", + __func__, &s->ctx); + } g_free(s); } |