tests: fix ptimer leaks

Spotted by ASAN.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Marc-André Lureau 2017-01-27 12:55:51 +04:00
parent 461a862022
commit 072bdb07c5
4 changed files with 79 additions and 37 deletions

View file

@ -108,6 +108,11 @@ QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque)
return bh;
}
void qemu_bh_delete(QEMUBH *bh)
{
g_free(bh);
}
void replay_bh_schedule_event(QEMUBH *bh)
{
bh->cb(bh->opaque);