diff options
author | Christian Heimes <christian@cheimes.de> | 2013-11-06 16:25:17 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-11-06 16:25:17 (GMT) |
commit | 6853108ccd09d2be6d1af828053db35577b30200 (patch) | |
tree | 9e6ecc320a79ae9771df1aed7fb4f37814800b25 /Modules/_hashopenssl.c | |
parent | 95887b7e5bddc6083e254a565ca6d6f40ca47020 (diff) | |
download | cpython-6853108ccd09d2be6d1af828053db35577b30200.zip cpython-6853108ccd09d2be6d1af828053db35577b30200.tar.gz cpython-6853108ccd09d2be6d1af828053db35577b30200.tar.bz2 |
Issue #18582: fix memory leak in pbkdf2 code
Diffstat (limited to 'Modules/_hashopenssl.c')
-rw-r--r-- | Modules/_hashopenssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index 80e1b61..1a11bb5 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -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)) { |