summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
-rw-r--r--event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/event.c b/event.c
index f01354a9..6034ef36 100644
--- a/event.c
+++ b/event.c
@@ -343,7 +343,7 @@ event_base_free(struct event_base *base)
event_debug(("%s: %d events were still set in base",
__func__, n_deleted));
- if (base->evsel->dealloc != NULL)
+ if (base->evsel != NULL && base->evsel->dealloc != NULL)
base->evsel->dealloc(base, base->evbase);
for (i = 0; i < base->nactivequeues; ++i)