diff options
author | Jardel Weyrich <jweyrich@gmail.com> | 2010-01-01 04:13:05 -0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-01-08 23:26:01 -0500 |
commit | 2f33e00af3e617d4a1fbb22de37f7c382de6961b (patch) | |
tree | 2839db3b47e8b445e3a92cce39bf8d7e7abdf2ea /evthread_win32.c | |
parent | 66c02c7826ed7b65ddbd071c6ac0a86b1407ebc4 (diff) | |
download | libevent-2f33e00af3e617d4a1fbb22de37f7c382de6961b.tar.gz |
Fixed a memory leak on windows threads implementation. The CRITICAL_SECTION was not being free'd in evthread_win32_lock_free().
Diffstat (limited to 'evthread_win32.c')
-rw-r--r-- | evthread_win32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/evthread_win32.c b/evthread_win32.c index ad055107..995e0e15 100644 --- a/evthread_win32.c +++ b/evthread_win32.c @@ -53,6 +53,7 @@ evthread_win32_lock_free(void *_lock, unsigned locktype) { CRITICAL_SECTION *lock = _lock; DeleteCriticalSection(lock); + mm_free(lock); } static int |