Fix memory leak.
This commit is contained in:
parent
85c9ba2342
commit
16bc45ba95
@ -129,6 +129,7 @@ int PKCS5_PBKDF2_HMAC(const char *pass, int passlen,
|
|||||||
HMAC_CTX_cleanup(&hctx);
|
HMAC_CTX_cleanup(&hctx);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
HMAC_CTX_cleanup(&hctx);
|
||||||
memcpy(p, digtmp, cplen);
|
memcpy(p, digtmp, cplen);
|
||||||
for(j = 1; j < iter; j++)
|
for(j = 1; j < iter; j++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user