diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-12-22 11:13:11 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-12-22 11:13:11 -0500 |
commit | b94cb401d2185566e7fb52b78c5a5a6747987f99 (patch) | |
tree | 76787fbcde55a26ba615b7713d660f17cb6bc94c /src | |
parent | 13f26f41e469ae2fa5d2249c532f7f515195a2a0 (diff) | |
download | tor-b94cb401d2185566e7fb52b78c5a5a6747987f99.tar.gz tor-b94cb401d2185566e7fb52b78c5a5a6747987f99.zip |
Coverity complained that we were not checking this return value
Diffstat (limited to 'src')
-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; } |