From bce346a8bc22558054964c3d07a4617c20892e83 Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Tue, 4 Apr 2017 07:38:15 +0200 Subject: [PATCH] fix memory leak in CipherImpl with OpenSSL 1.1.x --- Crypto/src/CipherImpl.cpp | 1 + 1 file changed, 1 insertion(+) 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