aboutsummaryrefslogtreecommitdiff
path: root/tests/cpu-plug-test.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2019-11-12 10:14:33 +0000
committerPeter Maydell <peter.maydell@linaro.org>2019-11-12 10:14:33 +0000
commitb0f2855bd09b0003e3c21009b2140820c9b65f8d (patch)
tree8fc4f6166ed3b15e474f7b5d9f30ed9d568ba386 /tests/cpu-plug-test.c
parent9f2ce35dfa4ea4a31dbb765dd02bed2500891887 (diff)
parent623ef637a2e42e023e7436d4bfbdc5159fb36684 (diff)
downloadqemu-b0f2855bd09b0003e3c21009b2140820c9b65f8d.zip
qemu-b0f2855bd09b0003e3c21009b2140820c9b65f8d.tar.gz
qemu-b0f2855bd09b0003e3c21009b2140820c9b65f8d.tar.bz2
Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2019-11-12' into staging
- Fix memory leaks for QTESTS - Update MAINTAINERS file - Check for the availability of bzip2 in "configure" # gpg: Signature made Tue 12 Nov 2019 06:09:09 GMT # gpg: using RSA key 27B88847EEE0250118F3EAB92ED9D774FE702DB5 # gpg: issuer "thuth@redhat.com" # gpg: Good signature from "Thomas Huth <th.huth@gmx.de>" [full] # gpg: aka "Thomas Huth <thuth@redhat.com>" [full] # gpg: aka "Thomas Huth <huth@tuxfamily.org>" [full] # gpg: aka "Thomas Huth <th.huth@posteo.de>" [unknown] # Primary key fingerprint: 27B8 8847 EEE0 2501 18F3 EAB9 2ED9 D774 FE70 2DB5 * remotes/huth-gitlab/tags/pull-request-2019-11-12: configure: Check bzip2 is available configure: Only decompress EDK2 blobs for X86/ARM targets tests/migration: Print some debug on bad status MAINTAINERS: slirp: Remove myself as maintainer cpu-plug-test: fix leaks qtest: fix qtest_qmp_device_add leak Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'tests/cpu-plug-test.c')
-rw-r--r--tests/cpu-plug-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/cpu-plug-test.c b/tests/cpu-plug-test.c
index 058cef5..30e514b 100644
--- a/tests/cpu-plug-test.c
+++ b/tests/cpu-plug-test.c
@@ -99,6 +99,7 @@ static void test_plug_with_device_add(gconstpointer data)
cpu = qobject_to(QDict, e);
if (qdict_haskey(cpu, "qom-path")) {
+ qobject_unref(e);
continue;
}
@@ -107,6 +108,7 @@ static void test_plug_with_device_add(gconstpointer data)
qtest_qmp_device_add_qdict(qts, td->device_model, props);
hotplugged++;
+ qobject_unref(e);
}
/* make sure that there were hotplugged CPUs */