1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-05 13:18:06 +03:00

varlink: make sure varlink_server_detach_event() doesn't leave invalid pointer around

This commit is contained in:
Lennart Poettering 2024-01-23 12:07:23 +01:00
parent 0db917f759
commit 03a83186be

View File

@ -3732,7 +3732,7 @@ int varlink_server_detach_event(VarlinkServer *s) {
LIST_FOREACH(sockets, ss, s->sockets)
ss->event_source = sd_event_source_disable_unref(ss->event_source);
sd_event_unref(s->event);
s->event = sd_event_unref(s->event);
return 0;
}