diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-06-09 17:33:37 +0400 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2017-07-31 13:05:49 +0300 |
commit | 80792eb9257588d9a554605f3411cbc7ed51e9bc (patch) | |
tree | 627c1e383781b476c0b4c0413fa85f965d0fca63 /tests | |
parent | 0c26c080ee592ea47597d3ab8fd712d7d2c4ba0f (diff) | |
download | qemu-80792eb9257588d9a554605f3411cbc7ed51e9bc.zip qemu-80792eb9257588d9a554605f3411cbc7ed51e9bc.tar.gz qemu-80792eb9257588d9a554605f3411cbc7ed51e9bc.tar.bz2 |
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')
-rw-r--r-- | tests/check-qom-proplist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/check-qom-proplist.c b/tests/check-qom-proplist.c index 432b665..c51e6e7 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 |