summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
}