]> granicus.if.org Git - libevent/commitdiff
Add an assertion for another of the complaints from coverity. See 1b065d07df196
authorNick Mathewson <nickm@torproject.org>
Wed, 7 Aug 2013 00:00:53 +0000 (20:00 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 7 Aug 2013 00:00:53 +0000 (20:00 -0400)
event.c

diff --git a/event.c b/event.c
index 010d9132966a643e9a752535b17300c329b6b81c..e50616c40d24a4628957d9a949f8684374f59150 100644 (file)
--- a/event.c
+++ b/event.c
@@ -1539,6 +1539,7 @@ event_process_active_single_queue(struct event_base *base,
                case EV_CLOSURE_EVENT_FINALIZE:
                case EV_CLOSURE_EVENT_FINALIZE_FREE:
                        base->current_event = NULL;
+                       EVUTIL_ASSERT(ev != NULL);
                        EVUTIL_ASSERT((evcb->evcb_flags & EVLIST_FINALIZING));
                        EVBASE_RELEASE_LOCK(base, th_base_lock);
                        ev->ev_evcallback.evcb_cb_union.evcb_evfinalize(ev, ev->ev_arg);