mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Issue #18582: fix memory leak in pbkdf2 code
This commit is contained in:
parent
95887b7e5b
commit
6853108ccd
1 changed files with 1 additions and 0 deletions
|
|
@ -535,6 +535,7 @@ PKCS5_PBKDF2_HMAC_fast(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++) {
|
||||
if (!HMAC_CTX_copy(&hctx, &hctx_tpl)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue