mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-08 07:58:01 +02:00
_dbus_server_new_for_socket: Invalidate watches during error unwinding
We assert that every watch is invalidated before it is freed, but in some OOM code paths this didn't happen. Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89104
This commit is contained in:
parent
fa123560d3
commit
1ce34beef8
1 changed files with 1 additions and 0 deletions
|
|
@ -356,6 +356,7 @@ _dbus_server_new_for_socket (DBusSocket *fds,
|
|||
{
|
||||
if (socket_server->watch[i] != NULL)
|
||||
{
|
||||
_dbus_watch_invalidate (socket_server->watch[i]);
|
||||
_dbus_watch_unref (socket_server->watch[i]);
|
||||
socket_server->watch[i] = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue