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.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@291536 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/__threading_support b/include/__threading_support
index b2c3b1f..a672a9f 100644
--- a/include/__threading_support
+++ b/include/__threading_support
@@ -385,7 +385,7 @@
int __libcpp_recursive_mutex_destroy(__libcpp_recursive_mutex_t *__m)
{
- static_cast<void>(__m);
+ DeleteCriticalSection(__m);
return 0;
}