]> granicus.if.org Git - libevent/commitdiff
event_free_debug_globals_locks(): disable lock debugging
authorAzat Khuzhin <a3at.mail@gmail.com>
Sun, 25 Jan 2015 21:29:15 +0000 (00:29 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sun, 25 Jan 2015 21:40:09 +0000 (00:40 +0300)
This will allow to use library event after
event_free_debug_globals_locks()/libevent_global_shutdown() without
invalid read/write's.

event.c

diff --git a/event.c b/event.c
index 2e4f64ea841e2f1d707a1c31b474e7132f424f41..440a90a5b68f7e03412df295a4486752c060b9df 100644 (file)
--- a/event.c
+++ b/event.c
@@ -3763,6 +3763,7 @@ event_free_debug_globals_locks(void)
        if (event_debug_map_lock_ != NULL) {
                EVTHREAD_FREE_LOCK(event_debug_map_lock_, 0);
                event_debug_map_lock_ = NULL;
+               evthreadimpl_disable_lock_debugging_();
        }
 #endif /* EVENT__DISABLE_DEBUG_MODE */
 #endif /* EVENT__DISABLE_THREAD_SUPPORT */