summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer Jackson <spencer.jackson@mongodb.com>2015-04-16 17:47:19 -0400
committerSpencer Jackson <spencer.jackson@mongodb.com>2015-04-16 18:12:44 -0400
commite309731a59476993859f8ea37d3066dc0a415893 (patch)
treed5a2f95d79de1c9ae97075dfb1e67eb3fd7cd9dd
parent5ae0a2505ca14442ca6473b2d713be4e84958e6b (diff)
downloadmongo-e309731a59476993859f8ea37d3066dc0a415893.tar.gz
SERVER-18051: Cleanup OpenSSL resource
-rw-r--r--src/mongo/crypto/crypto_openssl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/crypto/crypto_openssl.cpp b/src/mongo/crypto/crypto_openssl.cpp
index 759ad16d66f..53e898ae487 100644
--- a/src/mongo/crypto/crypto_openssl.cpp
+++ b/src/mongo/crypto/crypto_openssl.cpp
@@ -50,6 +50,7 @@ namespace crypto {
EVP_MD_CTX digestCtx;
EVP_MD_CTX_init(&digestCtx);
+ ON_BLOCK_EXIT(EVP_MD_CTX_cleanup, &digestCtx);
if (1 != EVP_DigestInit_ex(&digestCtx, EVP_sha1(), NULL)) {
return false;