From 7af5d9d90e45b068dfca1f14e17d6f61d1899518 Mon Sep 17 00:00:00 2001 From: Jochen Behrens Date: Wed, 26 Feb 2025 16:49:07 +0100 Subject: [PATCH] Fixed issue #633 Handle leak in parallel (nThread > 1) zstd decompression --- blosc/win32/pthread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blosc/win32/pthread.c b/blosc/win32/pthread.c index 0ef5bd6fd..5f38194c3 100644 --- a/blosc/win32/pthread.c +++ b/blosc/win32/pthread.c @@ -77,8 +77,10 @@ int win32_pthread_join(pthread_t *thread, void **value_ptr) case WAIT_OBJECT_0: if (value_ptr) *value_ptr = thread->arg; + CloseHandle(thread->handle); return 0; case WAIT_ABANDONED: + CloseHandle(thread->handle); return EINVAL; default: return GetLastError();