Skip to content

Commit

Permalink
Fixed issue #633 Handle leak in parallel (nThread > 1) zstd decompres…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
jocbeh authored and FrancescAlted committed Feb 26, 2025
1 parent bafa95d commit b8f6977
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 b8f6977

Please sign in to comment.