From fe54dfb37fa0b56caa7a75035a0e667f7783828f Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 5 May 2013 23:47:45 -0400 Subject: Don't forget to CloseHandle threads on win32, spotted by Attila --- src/win32/pthread/pthread.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; } -- cgit