mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-19 09:15:34 -04:00
Fix: do not crash when asked to configure an impossible event_base
svn:r942
This commit is contained in:
parent
b3d6a569e7
commit
c97ee898dc
2
event.c
2
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user