diff options
| author | Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | 2025-03-03 11:01:01 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-03 11:01:01 (GMT) |
| commit | 9643ce9019c9f01a0e5d773d3abddb79471fa19a (patch) | |
| tree | 4ef553d5967ae25f56b8a504e489aa324d831d34 /Python/pythonrun.c | |
| parent | 36e696738bbdc17c96c0a98a923c1dd8c1b46f25 (diff) | |
| download | cpython-9643ce9019c9f01a0e5d773d3abddb79471fa19a.zip cpython-9643ce9019c9f01a0e5d773d3abddb79471fa19a.tar.gz cpython-9643ce9019c9f01a0e5d773d3abddb79471fa19a.tar.bz2 | |
[3.13] gh-127667: fix memory leaks in `hashlib` (GH-127668) (#130784)
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
