| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Libevent
Revision: 942
Author: nickm
Date: 26 Sep 2008 09:36:15
Changes:Fix: do not crash when asked to configure an impossible event_base
Files:| ... | ...@@ -343,7 +343,7 @@ | |
| 343 | 343 | event_debug(("%s: %d events were still set in base", |
| 344 | 344 | __func__, n_deleted)); |
| 345 | 345 | |
| 346 | if (base->evsel->dealloc != NULL) | |
| 346 | if (base->evsel != NULL && base->evsel->dealloc != NULL) | |
| 347 | 347 | base->evsel->dealloc(base, base->evbase); |
| 348 | 348 | |
| 349 | 349 | for (i = 0; i < base->nactivequeues; ++i) |