Merge pull request #2539 from dgarske/mutex_ref

Fixes for cases where mutex was not being free'd
This commit is contained in:
toddouska
2019-10-31 13:10:04 -07:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@ -3464,6 +3464,10 @@ void FreeX509(WOLFSSL_X509* x509)
FreeAltNames(x509->altNames, x509->heap);
x509->altNames = NULL;
}
#if defined(OPENSSL_EXTRA) || defined(OPENSSL_ALL)
wc_FreeMutex(&x509->refMutex);
#endif
}

View File

@ -22922,6 +22922,8 @@ void wolfSSL_EVP_PKEY_free(WOLFSSL_EVP_PKEY* key)
default:
break;
}
wc_FreeMutex(&key->refMutex);
XFREE(key, key->heap, DYNAMIC_TYPE_PUBLIC_KEY);
}
}