From: Marc-André Lureau Date: Mon, 26 Mar 2018 17:20:41 +0000 (+0200) Subject: qmp-test: fix response leak X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fa15cf8b5c77fc5837bbd67066735b6da5b00ee2;p=qemu.git qmp-test: fix response leak Apparently introduced in commit a4f90923b520f1dc0a768634877eb412e5052c26. Signed-off-by: Marc-André Lureau Message-Id: <20180326172041.21009-1-marcandre.lureau@redhat.com> Reviewed-by: Eric Blake Signed-off-by: Eric Blake --- diff --git a/tests/qmp-test.c b/tests/qmp-test.c index 558e83540c..8de99a4727 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' }");