fix memory leak in CipherImpl with OpenSSL 1.1.x

This commit is contained in:
Guenter Obiltschnig 2017-04-04 07:38:15 +02:00
parent 63b6be6481
commit bce346a8bc

View File

@ -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