Skip to content

gh-132983: Fix refleak in zstd dictionary functions #134459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025

Conversation

emmatyping
Copy link
Member

@emmatyping emmatyping commented May 21, 2025

Missed deallocating the array of samples sizes if an invalid array of samples are provided. h/t to @ericsnowcurrently for spotting the buildbot failure.

Copy link
Member

@ericsnowcurrently ericsnowcurrently left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ericsnowcurrently ericsnowcurrently enabled auto-merge (squash) May 21, 2025 18:52
@ericsnowcurrently ericsnowcurrently merged commit fb68776 into python:main May 21, 2025
48 checks passed
@miss-islington-app
Copy link

Thanks @emmatyping for the PR, and @ericsnowcurrently for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 21, 2025
@bedevere-app
Copy link

bedevere-app bot commented May 21, 2025

GH-134463 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label May 21, 2025
ericsnowcurrently pushed a commit that referenced this pull request May 21, 2025
@emmatyping emmatyping deleted the zstd-refleak branch May 21, 2025 20:30
@gpshead
Copy link
Member

gpshead commented May 21, 2025

Hah, I even looked at the original PR for a dealloc, guess I also missed that case. ❤️

lkollar pushed a commit to lkollar/cpython that referenced this pull request May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants