summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-05 23:47:45 -0400
committerAdam <Adam@anope.org>2013-05-05 23:47:45 -0400
commitfe54dfb37fa0b56caa7a75035a0e667f7783828f (patch)
treeecb80a5b515d6e4c677d1b4b9a41b632491e286d /src
parent3f5f84c92c1a424843b430c60a50efa600ae1236 (diff)
Don't forget to CloseHandle threads on win32, spotted by Attila
Diffstat (limited to 'src')
-rw-r--r--src/win32/pthread/pthread.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/win32/pthread/pthread.cpp b/src/win32/pthread/pthread.cpp
index dd2310d40..72f1c94e8 100644
--- a/src/win32/pthread/pthread.cpp
+++ b/src/win32/pthread/pthread.cpp
@@ -53,6 +53,7 @@ int pthread_join(pthread_t thread, void **)
{
if (WaitForSingleObject(thread, INFINITE) == WAIT_FAILED)
return -1;
+ CloseHandle(thread);
return 0;
}