summaryrefslogtreecommitdiffstats
path: root/tests/postcopy-test.c
diff options
context:
space:
mode:
authorMarc-André Lureau2016-11-10 09:27:11 +0100
committerMarc-André Lureau2017-02-28 21:09:28 +0100
commitdc491fead04a92a612df93b85b0ebf9dcc3f6684 (patch)
treea58bda301c8f0c93bf51214dc63f271924ca614f /tests/postcopy-test.c
parentqtest: fix a memory leak (diff)
downloadqemu-dc491fead04a92a612df93b85b0ebf9dcc3f6684.tar.gz
qemu-dc491fead04a92a612df93b85b0ebf9dcc3f6684.tar.xz
qemu-dc491fead04a92a612df93b85b0ebf9dcc3f6684.zip
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/postcopy-test.c')
-rw-r--r--tests/postcopy-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/postcopy-test.c b/tests/postcopy-test.c
index dafe8beba4..de35a18903 100644
--- a/tests/postcopy-test.c
+++ b/tests/postcopy-test.c
@@ -482,7 +482,7 @@ static void test_migrate(void)
usleep(10 * 1000);
} while (dest_byte_a == dest_byte_b);
- qmp("{ 'execute' : 'stop'}");
+ qmp_discard_response("{ 'execute' : 'stop'}");
/* With it stopped, check nothing changes */
qtest_memread(to, start_address, &dest_byte_c, 1);
sleep(1);