Fixes for cases where mutex is not being free'd.

This commit is contained in:
David Garske
2019-10-30 10:11:06 -07:00
parent 6bc16a4acb
commit 760a90ef5d
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

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