From 80a4e6d92b11aeae45dd1ab41fbf7870be8e5aef Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 11 Nov 2013 22:39:40 +0000 Subject: [PATCH 10/17] Fix memory leak. (cherry picked from commit 16bc45ba956fdf07c7cda7feda88de597569df63) --- crypto/evp/p5_crpt2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/evp/p5_crpt2.c b/crypto/evp/p5_crpt2.c index 975d004..af2e8f9 100644 --- a/crypto/evp/p5_crpt2.c +++ b/crypto/evp/p5_crpt2.c @@ -119,6 +119,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++) { -- 1.7.9.5