From: Dr. Stephen Henson Date: Mon, 11 Nov 2013 22:39:40 +0000 (+0000) Subject: Fix memory leak. X-Git-Tag: OpenSSL_1_0_1f~22 X-Git-Url: http://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=e94a23876c808c0b70887110bb6ea2b50108f994;hp=041f681943c56ed9e2dbb55866c74865ad1af36b Fix memory leak. (cherry picked from commit 16bc45ba956fdf07c7cda7feda88de597569df63) --- diff --git a/crypto/evp/p5_crpt2.c b/crypto/evp/p5_crpt2.c index cf26085..fe3c6c8 100644 --- a/crypto/evp/p5_crpt2.c +++ b/crypto/evp/p5_crpt2.c @@ -129,6 +129,7 @@ int PKCS5_PBKDF2_HMAC(const char *pass, int passlen, HMAC_CTX_cleanup(&hctx); return 0; } + HMAC_CTX_cleanup(&hctx); memcpy(p, digtmp, cplen); for(j = 1; j < iter; j++) {