mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
fc34059f08
commit
dc491fead0
6 changed files with 15 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue