mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -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
|
@ -64,4 +64,5 @@ void usb_test_hotplug(const char *hcd_id, const int port,
|
|||
g_assert(response);
|
||||
g_assert(qdict_haskey(response, "event"));
|
||||
g_assert(!strcmp(qdict_get_str(response, "event"), "DEVICE_DELETED"));
|
||||
QDECREF(response);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue