diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2013-11-11 22:39:40 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2013-11-11 23:55:47 +0000 |
commit | 0c9394280a2e9331946461632d25823fa361c68d (patch) | |
tree | 80df3591ddea16d6b99da06111a85c7f9c48d780 | |
parent | 07aafc49569c0f786cad3b51c478487716795855 (diff) | |
download | openssl-0c9394280a2e9331946461632d25823fa361c68d.zip openssl-0c9394280a2e9331946461632d25823fa361c68d.tar.gz openssl-0c9394280a2e9331946461632d25823fa361c68d.tar.bz2 |
Fix memory leak.
(cherry picked from commit 16bc45ba956fdf07c7cda7feda88de597569df63)
-rw-r--r-- | crypto/evp/p5_crpt2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/p5_crpt2.c b/crypto/evp/p5_crpt2.c index 2edb657..a041032 100644 --- a/crypto/evp/p5_crpt2.c +++ b/crypto/evp/p5_crpt2.c @@ -128,6 +128,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++) { |