diff --git a/block/linux-aio.c b/block/linux-aio.c index 48673690ac91d259607c1f96b8944321cc7b0e34..7ac7e8c99c72f6e6e2c7b8fb176835e8c6a8e95d 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); }