Skip to content

Commit 4ec493b

Browse files
committed
threading_support: delete the critical section
Although the CriticalSection itself doesnt need to be destroyed, there may be debug data associated with it. Plug a possible small leak. llvm-svn: 291536
1 parent 2ed461e commit 4ec493b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__threading_support

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ int __libcpp_recursive_mutex_unlock(__libcpp_recursive_mutex_t *__m)
385385

386386
int __libcpp_recursive_mutex_destroy(__libcpp_recursive_mutex_t *__m)
387387
{
388-
static_cast<void>(__m);
388+
DeleteCriticalSection(__m);
389389
return 0;
390390
}
391391

0 commit comments

Comments
 (0)