Merge pull request #4073 from TakayukiMatsuo/tk12138

Add calling wc_FreeMutex for globalRNGMutex
This commit is contained in:
Sean Parkinson
2021-05-28 16:11:00 +10:00
committed by GitHub

View File

@ -13389,6 +13389,11 @@ int wolfSSL_Cleanup(void)
ret = WC_CLEANUP_E;
}
#ifdef HAVE_GLOBAL_RNG
if (wc_FreeMutex(&globalRNGMutex) != 0) {
ret = BAD_MUTEX_E;
}
#endif
return ret;
}