Fix memory leak.
(cherry picked from commit 16bc45ba956fdf07c7cda7feda88de597569df63)
This commit is contained in:
parent
07aafc4956
commit
0c9394280a
@ -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++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user