File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1909,10 +1909,14 @@ void __kmp_runtime_initialize(void) {
1909
1909
KMP_CHECK_SYSFAIL (" pthread_mutexattr_init" , status);
1910
1910
status = pthread_mutex_init (&__kmp_wait_mx.m_mutex , &mutex_attr);
1911
1911
KMP_CHECK_SYSFAIL (" pthread_mutex_init" , status);
1912
+ status = pthread_mutexattr_destroy (&mutex_attr);
1913
+ KMP_CHECK_SYSFAIL (" pthread_mutexattr_destroy" , status);
1912
1914
status = pthread_condattr_init (&cond_attr);
1913
1915
KMP_CHECK_SYSFAIL (" pthread_condattr_init" , status);
1914
1916
status = pthread_cond_init (&__kmp_wait_cv.c_cond , &cond_attr);
1915
1917
KMP_CHECK_SYSFAIL (" pthread_cond_init" , status);
1918
+ status = pthread_condattr_destroy (&cond_attr);
1919
+ KMP_CHECK_SYSFAIL (" pthread_condattr_destroy" , status);
1916
1920
#if USE_ITT_BUILD
1917
1921
__kmp_itt_initialize ();
1918
1922
#endif /* USE_ITT_BUILD */
You can’t perform that action at this time.
0 commit comments