]> git.ipfire.org Git - thirdparty/qemu.git/commit
ui/dbus: fix leak on message filtering
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 8 Oct 2024 12:50:12 +0000 (16:50 +0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 8 Nov 2024 10:02:57 +0000 (13:02 +0300)
commit63b32ce87e6c3e71719a6a9f6f4089059c45f487
treea5ad092dc099eaeabc475777093950b2cfaec9ce
parentc385420aaffcf2ee9a2ac11dd8a4be04e5d3d24a
ui/dbus: fix leak on message filtering

A filter function that wants to drop a message should return NULL, in
which case it must also unref the message itself.

Fixes: fa88b85de ("ui/dbus: filter out pending messages when scanout")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-ID: <20241008125028.1177932-4-marcandre.lureau@redhat.com>
(cherry picked from commit 244d52ff736fefc3dd364ed091720aa896af306d)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
ui/dbus-listener.c