Skip to content

[3.13] gh-127667: fix memory leaks in hashlib (GH-127668) - #130784

Merged
picnixz merged 1 commit into
python:3.13from
picnixz:bp/313/097846502b7f33cb327d512e2a396acf4f4de46e-hashlib-leaks-127668
Mar 3, 2025
Merged

picnixz merged 1 commit into
python:3.13from
picnixz:bp/313/097846502b7f33cb327d512e2a396acf4f4de46e-hashlib-leaks-127668

Conversation

@picnixz

@picnixz picnixz commented Mar 3, 2025 •

Copy link
Copy Markdown
Member
  • 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 0978465)

- 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.
@picnixz
picnixz enabled auto-merge (squash) March 3, 2025 10:38
@picnixz
picnixz merged commit 9643ce9 into python:3.13 Mar 3, 2025
@picnixz
picnixz deleted the bp/313/097846502b7f33cb327d512e2a396acf4f4de46e-hashlib-leaks-127668 branch March 3, 2025 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant