aboutsummaryrefslogtreecommitdiff
path: root/tests/qmp-test.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2018-03-26 19:20:41 +0200
committerEric Blake <eblake@redhat.com>2018-03-27 10:17:32 -0500
commitfa15cf8b5c77fc5837bbd67066735b6da5b00ee2 (patch)
tree0aee9bfa327bc5819176d14cc890a4b281ccb99a /tests/qmp-test.c
parentbdc408e91b14cedfc29be8ff703408936e575721 (diff)
downloadqemu-fa15cf8b5c77fc5837bbd67066735b6da5b00ee2.zip
qemu-fa15cf8b5c77fc5837bbd67066735b6da5b00ee2.tar.gz
qemu-fa15cf8b5c77fc5837bbd67066735b6da5b00ee2.tar.bz2
qmp-test: fix response leak
Apparently introduced in commit a4f90923b520f1dc0a768634877eb412e5052c26. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20180326172041.21009-1-marcandre.lureau@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/qmp-test.c')
-rw-r--r--tests/qmp-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qmp-test.c b/tests/qmp-test.c
index 558e835..8de99a4 100644
--- a/tests/qmp-test.c
+++ b/tests/qmp-test.c
@@ -90,6 +90,7 @@ static void test_qmp_protocol(void)
test_version(qdict_get(q, "version"));
capabilities = qdict_get_qlist(q, "capabilities");
g_assert(capabilities && qlist_empty(capabilities));
+ QDECREF(resp);
/* Test valid command before handshake */
resp = qtest_qmp(qts, "{ 'execute': 'query-version' }");