mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
core/timer: fix potential use-after-free
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
d3ab7b8078
commit
756491af39
@@ -68,7 +68,7 @@ static void timer_done(Unit *u) {
|
||||
t->monotonic_event_source = sd_event_source_disable_unref(t->monotonic_event_source);
|
||||
t->realtime_event_source = sd_event_source_disable_unref(t->realtime_event_source);
|
||||
|
||||
free(t->stamp_path);
|
||||
t->stamp_path = mfree(t->stamp_path);
|
||||
}
|
||||
|
||||
static int timer_verify(Timer *t) {
|
||||
|
||||
Reference in New Issue
Block a user