]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests: fix check-qom-interface leaks
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 7 Jul 2016 19:30:32 +0000 (21:30 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 8 Sep 2016 13:57:32 +0000 (17:57 +0400)
Found thanks to ASAN.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/check-qom-interface.c

index 719ddcf2e046ce01ed97ef319951b8a2a52e67b6..f87c9aaa8ad473730f03c84b7a483737e57642f3 100644 (file)
@@ -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)