[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] tests: check-qom-proplist: fix leak
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH] tests: check-qom-proplist: fix leak |
Date: |
Fri, 9 Jun 2017 17:33:37 +0400 |
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 <address@hidden>
---
tests/check-qom-proplist.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/check-qom-proplist.c b/tests/check-qom-proplist.c
index 8e432e9ab6..a3cd7ab29f 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
--
2.13.0.91.g00982b8dd
- [Qemu-devel] [PATCH] tests: check-qom-proplist: fix leak,
Marc-André Lureau <=