summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-11-11 22:39:40 +0000
committerDr. Stephen Henson <steve@openssl.org>2013-11-11 23:55:18 +0000
commit18f49508a5d45fecd261f523210140eeb2a77f27 (patch)
tree79c8591c273dec85b545108e06465019c9abb1d6 /crypto/evp
parent5c50462e1e23eeb6d91e1e5311f5da0b79b04fb4 (diff)
Fix memory leak.
(cherry picked from commit 16bc45ba956fdf07c7cda7feda88de597569df63)
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/p5_crpt2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/p5_crpt2.c b/crypto/evp/p5_crpt2.c
index cf26085c1a..fe3c6c8813 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++)
{