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:
parent
0db917f759
commit
03a83186be
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user