Assert we don't double-free timers (bug#81108)

* src/atimer.c (cancel_atimer): Assert that we found the timer.
This commit is contained in:
Pip Cet 2026-06-06 10:14:47 +00:00
parent 90314895dd
commit 3106dc7766

View file

@ -205,6 +205,9 @@ cancel_atimer (struct atimer *timer)
}
}
/* We shouldn't be called with timers which aren't on either list. */
eassert (i != 2);
unblock_atimers (&oldset);
}