Author: compnerd Date: Mon Jan 9 22:18:47 2017 New Revision: 291536 URL: http://llvm.org/viewvc/llvm-project?rev=291536&view=rev Log: 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. Modified: libcxx/trunk/include/__threading_support Modified: libcxx/trunk/include/__threading_support URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__threading_support?rev=291536&r1=291535&r2=291536&view=diff ============================================================================== --- libcxx/trunk/include/__threading_support (original) +++ libcxx/trunk/include/__threading_support Mon Jan 9 22:18:47 2017 @@ -385,7 +385,7 @@ int __libcpp_recursive_mutex_unlock(__li int __libcpp_recursive_mutex_destroy(__libcpp_recursive_mutex_t *__m) { - static_cast<void>(__m); + DeleteCriticalSection(__m); return 0; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits