aboutsummaryrefslogtreecommitdiff
path: root/tests/check-qom-proplist.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-06-09 17:33:37 +0400
committerMichael Tokarev <mjt@tls.msk.ru>2017-07-31 13:05:49 +0300
commit80792eb9257588d9a554605f3411cbc7ed51e9bc (patch)
tree627c1e383781b476c0b4c0413fa85f965d0fca63 /tests/check-qom-proplist.c
parent0c26c080ee592ea47597d3ab8fd712d7d2c4ba0f (diff)
tests: check-qom-proplist: fix leak
user_creatable_add_opts() returns a reference (the other reference is for the root parent/child link). Leak introduced in commit a1af255f065cc. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'tests/check-qom-proplist.c')
-rw-r--r--tests/check-qom-proplist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/check-qom-proplist.c b/tests/check-qom-proplist.c
index 432b66585f..c51e6e734d 100644
--- a/tests/check-qom-proplist.c
+++ b/tests/check-qom-proplist.c
@@ -428,6 +428,8 @@ static void test_dummy_createcmdl(void)
g_assert(err == NULL);
error_free(err);
+ object_unref(OBJECT(dobj));
+
/*
* cmdline-parsing via qemu_opts_parse() results in a QemuOpts entry
* corresponding to the Object's ID to be added to the QemuOptsList