Fix memory leak.

(cherry picked from commit 16bc45ba95)
This commit is contained in:
Dr. Stephen Henson 2013-11-11 22:39:40 +00:00
parent 041f681943
commit e94a23876c

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