Fix memory leak.

(cherry picked from commit 16bc45ba956fdf07c7cda7feda88de597569df63)
This commit is contained in:
Dr. Stephen Henson 2013-11-11 22:39:40 +00:00
parent 07aafc4956
commit 0c9394280a

View File

@ -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++)
{