Fix memory leak.
This commit is contained in:
parent
85c9ba2342
commit
16bc45ba95
1 changed files with 1 additions and 0 deletions
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue