diff --git a/Crypto/src/CipherImpl.cpp b/Crypto/src/CipherImpl.cpp index b8708a78c..eb615b41f 100644 --- a/Crypto/src/CipherImpl.cpp +++ b/Crypto/src/CipherImpl.cpp @@ -119,6 +119,7 @@ namespace { #if OPENSSL_VERSION_NUMBER >= 0x10100000L EVP_CIPHER_CTX_cleanup(_pContext); + EVP_CIPHER_CTX_free(_pContext); #else EVP_CIPHER_CTX_cleanup(&_context); #endif