Skip to content

Commit 4fa6e8b

Browse files
committed
FIx to memleak on RSAImpl (pocoproject#502)
1 parent 98db64f commit 4fa6e8b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Crypto/src/RSAKeyImpl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ RSAKeyImpl::RSAKeyImpl(const X509Certificate& cert):
3737
const X509* pCert = cert.certificate();
3838
EVP_PKEY* pKey = X509_get_pubkey(const_cast<X509*>(pCert));
3939
_pRSA = EVP_PKEY_get1_RSA(pKey);
40+
EVP_PKEY_free(pKey);
4041
}
4142

4243

0 commit comments

Comments
 (0)