mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Fixed a memory leak on windows threads implementation. The CRITICAL_SECTION was not being free'd in evthread_win32_lock_free().
This commit is contained in:
parent
66c02c7826
commit
2f33e00af3
@ -53,6 +53,7 @@ evthread_win32_lock_free(void *_lock, unsigned locktype)
|
|||||||
{
|
{
|
||||||
CRITICAL_SECTION *lock = _lock;
|
CRITICAL_SECTION *lock = _lock;
|
||||||
DeleteCriticalSection(lock);
|
DeleteCriticalSection(lock);
|
||||||
|
mm_free(lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user