mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 04:21:24 +00:00
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:
parent
90314895dd
commit
3106dc7766
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue