Fix memory leak.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 11 Nov 2013 22:39:40 +0000 (22:39 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 11 Nov 2013 22:39:40 +0000 (22:39 +0000)
crypto/evp/p5_crpt2.c

index cf26085..fe3c6c8 100644 (file)
@@ -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++)
                        {