diff options
author | Jack Lloyd <[email protected]> | 2018-01-28 10:53:29 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-01-28 10:59:35 -0500 |
commit | 0d20406285e776b5a60d2ff4f5e3a4f6a06f7806 (patch) | |
tree | 604352441def2b90e786faa908aa09d92de09c83 /src/lib/prov | |
parent | ce0c28bffff30d9a1ce2fd93507012b1174600ac (diff) |
Fix a leak in OpenSSL block ciphers
Introduced when support for 1.1.0 API was added in #1056
Diffstat (limited to 'src/lib/prov')
-rw-r--r-- | src/lib/prov/openssl/openssl_block.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/prov/openssl/openssl_block.cpp b/src/lib/prov/openssl/openssl_block.cpp index 3cf203961..8b0c419d1 100644 --- a/src/lib/prov/openssl/openssl_block.cpp +++ b/src/lib/prov/openssl/openssl_block.cpp @@ -125,6 +125,9 @@ OpenSSL_BlockCipher::~OpenSSL_BlockCipher() { EVP_CIPHER_CTX_cleanup(m_encrypt); EVP_CIPHER_CTX_cleanup(m_decrypt); + + EVP_CIPHER_CTX_free(m_encrypt); + EVP_CIPHER_CTX_free(m_decrypt); } /* |