mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-27 10:25:59 +02:00
FIx to memleak on RSAImpl (#502)
This commit is contained in:
parent
98db64fa04
commit
4fa6e8b423
@ -37,6 +37,7 @@ RSAKeyImpl::RSAKeyImpl(const X509Certificate& cert):
|
|||||||
const X509* pCert = cert.certificate();
|
const X509* pCert = cert.certificate();
|
||||||
EVP_PKEY* pKey = X509_get_pubkey(const_cast<X509*>(pCert));
|
EVP_PKEY* pKey = X509_get_pubkey(const_cast<X509*>(pCert));
|
||||||
_pRSA = EVP_PKEY_get1_RSA(pKey);
|
_pRSA = EVP_PKEY_get1_RSA(pKey);
|
||||||
|
EVP_PKEY_free(pKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user