You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing error handling in set_skip_timer() can leak timer state #2899
data is allocated for the timer thread and is normally freed by degrade_timer(). However, set_skip_timer() does not check either allocation
or thread creation:
If malloc() fails, the function immediately dereferences data. If pthread_create() fails, the timer thread never runs, so data is never freed.
The related skip[slave_id] recovery logic also does not run in that case.
Suggested fix: check malloc() before writing through data; check the return
value from pthread_create() and free data if the thread was not created.
Only call pthread_detach() when pthread_create() succeeds.
Activity
hxy7yx commentedon Jul 13, 2026
fixed in #2901