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 a1af255f06.

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>
master
Marc-André Lureau 2017-06-09 17:33:37 +04:00 committed by Michael Tokarev
parent 0c26c080ee
commit 80792eb925
1 changed files with 2 additions and 0 deletions

View File

@ -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