aboutsummaryrefslogtreecommitdiff
path: root/tests/ptimer-test-stubs.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-01-27 12:55:51 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2017-03-01 00:09:28 +0400
commit072bdb07c5ef8b0351f9973ab5bba9e76be978a9 (patch)
tree8906bc08d789c2860c340c753dff5e506628fee2 /tests/ptimer-test-stubs.c
parent461a86202214c9c3daf3222a9a655206874bd970 (diff)
tests: fix ptimer leaks
Spotted by ASAN. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/ptimer-test-stubs.c')
-rw-r--r--tests/ptimer-test-stubs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ptimer-test-stubs.c b/tests/ptimer-test-stubs.c
index 21d4ebb0fe..8a1b0a336c 100644
--- a/tests/ptimer-test-stubs.c
+++ b/tests/ptimer-test-stubs.c
@@ -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);