Skip to content

Commit

Permalink
Fixed issue Blosc#633 Handle leak in parallel (nThread > 1) zstd deco…
Browse files Browse the repository at this point in the history
…mpression
  • Loading branch information
jocbeh committed Feb 26, 2025
1 parent bafa95d commit 7af5d9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blosc/win32/pthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7af5d9d

Please sign in to comment.