Fix memory leak.

This commit is contained in:
Dr. Stephen Henson 2013-11-11 22:39:40 +00:00
parent 85c9ba2342
commit 16bc45ba95

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