aboutsummaryrefslogtreecommitdiff
path: root/tests/test-filter-mirror.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-11-10 12:27:11 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2017-03-01 00:09:28 +0400
commitdc491fead04a92a612df93b85b0ebf9dcc3f6684 (patch)
treea58bda301c8f0c93bf51214dc63f271924ca614f /tests/test-filter-mirror.c
parentfc34059f080680b560b3f656988fdd9a75cd0eab (diff)
tests: fix qmp response leak
Spotted by ASAN. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/test-filter-mirror.c')
-rw-r--r--tests/test-filter-mirror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-filter-mirror.c b/tests/test-filter-mirror.c
index ffaaffabd0..9f84402493 100644
--- a/tests/test-filter-mirror.c
+++ b/tests/test-filter-mirror.c
@@ -57,7 +57,7 @@ static void test_mirror(void)
};
/* send a qmp command to guarantee that 'connected' is setting to true. */
- qmp("{ 'execute' : 'query-status'}");
+ qmp_discard_response("{ 'execute' : 'query-status'}");
ret = iov_send(send_sock[0], iov, 2, 0, sizeof(size) + sizeof(send_buf));
g_assert_cmpint(ret, ==, sizeof(send_buf) + sizeof(size));
close(send_sock[0]);