diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2024-06-27 22:37:54 +0900 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2024-07-02 09:34:55 +0200 |
commit | f48b7a4b69b55ed0c9e74013822ee3b16d8d7055 (patch) | |
tree | 1b1cc4fbb3d9076a2052d65906148a9a526654de /tests | |
parent | eefd26b8766d1db527946070510970af07ca033f (diff) | |
download | qemu-f48b7a4b69b55ed0c9e74013822ee3b16d8d7055.zip qemu-f48b7a4b69b55ed0c9e74013822ee3b16d8d7055.tar.gz qemu-f48b7a4b69b55ed0c9e74013822ee3b16d8d7055.tar.bz2 |
tests/qtest: Free unused QMP response
This fixes LeakSanitizer warnings.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20240627-san-v2-11-750bb0946dbd@daynix.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qtest/libqtest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c index c7f6897..ca46b1f 100644 --- a/tests/qtest/libqtest.c +++ b/tests/qtest/libqtest.c @@ -749,6 +749,8 @@ QDict *qtest_qmp_receive(QTestState *s) response, s->eventData)) { /* Stash the event for a later consumption */ s->pending_events = g_list_append(s->pending_events, response); + } else { + qobject_unref(response); } } } |