diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-11-10 12:27:11 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-03-01 00:09:28 +0400 |
commit | dc491fead04a92a612df93b85b0ebf9dcc3f6684 (patch) | |
tree | a58bda301c8f0c93bf51214dc63f271924ca614f /tests/libqos/usb.c | |
parent | fc34059f080680b560b3f656988fdd9a75cd0eab (diff) | |
download | qemu-dc491fead04a92a612df93b85b0ebf9dcc3f6684.zip qemu-dc491fead04a92a612df93b85b0ebf9dcc3f6684.tar.gz qemu-dc491fead04a92a612df93b85b0ebf9dcc3f6684.tar.bz2 |
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/libqos/usb.c')
-rw-r--r-- | tests/libqos/usb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/libqos/usb.c b/tests/libqos/usb.c index 72d7a96..98408d9 100644 --- a/tests/libqos/usb.c +++ b/tests/libqos/usb.c @@ -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); } |