diff options
| author | Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | 2025-03-03 10:44:42 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-03 10:44:42 (GMT) |
| commit | d25da899535f752be251bee8453b2c6942befaea (patch) | |
| tree | 3d89c73feb0bbcc37296b73893030995784a9c64 /Python/pythonrun.c | |
| parent | a22cfd42442f042f813e2a4c373230fbb8d59db9 (diff) | |
| download | cpython-d25da899535f752be251bee8453b2c6942befaea.zip cpython-d25da899535f752be251bee8453b2c6942befaea.tar.gz cpython-d25da899535f752be251bee8453b2c6942befaea.tar.bz2 | |
[3.12] gh-127667: fix memory leaks in `hashlib` (GH-127668) (#130783)
gh-127667: fix memory leaks in `hashlib` (GH-127668)
- Correctly handle `NULL` values returned by `EVP_MD_CTX_md`.
- Correctly free resources in error branches.
- Consistently suppress `_setException()` return value when needed.
- Collapse `_setException() + return NULL` into a single statement.
(cherry-picked from commit 097846502b7f33cb327d512e2a396acf4f4de46e)
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
