From: Dr. Stephen Henson Date: Thu, 22 Mar 2012 16:28:51 +0000 (+0000) Subject: fix leak X-Git-Tag: OpenSSL_1_0_1a~33 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c34137bef99fe5f4b3d8910b044777acbb44fbd9;p=oweals%2Fopenssl.git fix leak --- diff --git a/crypto/evp/p5_crpt.c b/crypto/evp/p5_crpt.c index 7d9c1f0123..294cc90d87 100644 --- a/crypto/evp/p5_crpt.c +++ b/crypto/evp/p5_crpt.c @@ -138,5 +138,6 @@ int PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *cctx, const char *pass, int passlen, OPENSSL_cleanse(iv, EVP_MAX_IV_LENGTH); rv = 1; err: + EVP_MD_CTX_cleanup(&ctx); return rv; }