diff options
-rw-r--r-- | src/or/scheduler.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/scheduler.c b/src/or/scheduler.c index d1a15aacb2..5b4dff2237 100644 --- a/src/or/scheduler.c +++ b/src/or/scheduler.c @@ -156,7 +156,9 @@ scheduler_free_all(void) log_debug(LD_SCHED, "Shutting down scheduler"); if (run_sched_ev) { - event_del(run_sched_ev); + if (event_del(run_sched_ev) < 0) { + log_warn(LD_BUG, "Problem deleting run_sched_ev"); + } tor_event_free(run_sched_ev); run_sched_ev = NULL; } |