mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-09 19:17:38 +01:00
fix memory leak in CipherImpl with OpenSSL 1.1.x
This commit is contained in:
parent
63b6be6481
commit
bce346a8bc
@ -119,6 +119,7 @@ namespace
|
|||||||
{
|
{
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||||
EVP_CIPHER_CTX_cleanup(_pContext);
|
EVP_CIPHER_CTX_cleanup(_pContext);
|
||||||
|
EVP_CIPHER_CTX_free(_pContext);
|
||||||
#else
|
#else
|
||||||
EVP_CIPHER_CTX_cleanup(&_context);
|
EVP_CIPHER_CTX_cleanup(&_context);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user