From b94cb401d2185566e7fb52b78c5a5a6747987f99 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 22 Dec 2014 11:13:11 -0500 Subject: Coverity complained that we were not checking this return value --- src/or/scheduler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-54-g00ecf