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>
This commit is contained in:
parent
0c26c080ee
commit
80792eb925
@ -428,6 +428,8 @@ static void test_dummy_createcmdl(void)
|
|||||||
g_assert(err == NULL);
|
g_assert(err == NULL);
|
||||||
error_free(err);
|
error_free(err);
|
||||||
|
|
||||||
|
object_unref(OBJECT(dobj));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* cmdline-parsing via qemu_opts_parse() results in a QemuOpts entry
|
* cmdline-parsing via qemu_opts_parse() results in a QemuOpts entry
|
||||||
* corresponding to the Object's ID to be added to the QemuOptsList
|
* corresponding to the Object's ID to be added to the QemuOptsList
|
||||||
|
Loading…
x
Reference in New Issue
Block a user