Add calling wc_FreeMutex for globalRNGMutex

This commit is contained in:
TakayukiMatsuo
2021-05-28 11:19:40 +09:00
parent 1fe445368c
commit 54dba6a2f2

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;
}