AioContext: avoid leaking BHs on cleanup
commita076972a4d36381d610a854f0c336507650a1d34
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 28 Jul 2015 16:34:08 +0000 (28 18:34 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 29 Jul 2015 09:02:06 +0000 (29 10:02 +0100)
tree50e4917af7aea8f00851af878fc59ccf109f2ebb
parentfed105e2756dde98efa5e80baca02ae516dd1e51
AioContext: avoid leaking BHs on cleanup

BHs are freed during aio_bh_poll().  This leads to memory leaks if there
is no aio_bh_poll() between qemu_bh_delete() and aio_ctx_finalize().

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1438101249-25166-3-git-send-email-pbonzini@redhat.com
Message-Id: <1438014819-18125-2-git-send-email-stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
async.c