Merge pull request #507 from cristiantm/fix-memleak-rsaimpl

FIx to memleak on RSAImpl (#502)
This commit is contained in:
Aleksandar Fabijanic 2014-08-12 23:26:12 -05:00
commit d0ebf0bc76

View File

@ -37,6 +37,7 @@ RSAKeyImpl::RSAKeyImpl(const X509Certificate& cert):
const X509* pCert = cert.certificate();
EVP_PKEY* pKey = X509_get_pubkey(const_cast<X509*>(pCert));
_pRSA = EVP_PKEY_get1_RSA(pKey);
EVP_PKEY_free(pKey);
}