event_free_debug_globals_locks(): disable lock debugging

This will allow to use library event after
event_free_debug_globals_locks()/libevent_global_shutdown() without
invalid read/write's.
This commit is contained in:
Azat Khuzhin 2015-01-26 00:29:15 +03:00
parent ccc55937cf
commit e5c87d18b0

View File

@ -3763,6 +3763,7 @@ event_free_debug_globals_locks(void)
if (event_debug_map_lock_ != NULL) { if (event_debug_map_lock_ != NULL) {
EVTHREAD_FREE_LOCK(event_debug_map_lock_, 0); EVTHREAD_FREE_LOCK(event_debug_map_lock_, 0);
event_debug_map_lock_ = NULL; event_debug_map_lock_ = NULL;
evthreadimpl_disable_lock_debugging_();
} }
#endif /* EVENT__DISABLE_DEBUG_MODE */ #endif /* EVENT__DISABLE_DEBUG_MODE */
#endif /* EVENT__DISABLE_THREAD_SUPPORT */ #endif /* EVENT__DISABLE_THREAD_SUPPORT */