From: Marc-André Lureau Date: Thu, 7 Jul 2016 19:30:32 +0000 (+0200) Subject: tests: fix check-qom-interface leaks X-Git-Tag: v2.8.0-rc0~154^2~17 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=265804b5d755502438b4d42a3682f54e03ea4d32;p=qemu-xen-unstable.git tests: fix check-qom-interface leaks Found thanks to ASAN. Signed-off-by: Marc-André Lureau Reviewed-by: Eric Blake --- diff --git a/tests/check-qom-interface.c b/tests/check-qom-interface.c index 719ddcf2e0..f87c9aaa8a 100644 --- a/tests/check-qom-interface.c +++ b/tests/check-qom-interface.c @@ -76,6 +76,7 @@ static void test_interface_impl(const char *type) g_assert(iobj); g_assert(ioc->test == PATTERN); + object_unref(obj); } static void interface_direct_test(void)