From: Marc-André Lureau <marcandre.lureau@redhat.com> Date: Fri, 9 Jun 2017 13:33:37 +0000 (+0400) Subject: tests: check-qom-proplist: fix leak X-Git-Tag: v2.10.0-rc1~9^2~24 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=80792eb9257588d9a554605f3411cbc7ed51e9bc;p=users%2Fdwmw2%2Fqemu.git 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> --- 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