-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-109216: Fix possible memory leak in BUILD_MAP
#109257
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's a good catch. This bug looks quite old, it's in 3.11, and I think it existed even before this code was refactored in #31564.
@sobolevn Can you manually backport this to older branches? Thanks |
Sure, will do later today. |
Thanks @sobolevn for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Thanks @sobolevn for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, @sobolevn and @kumaraditya303, I could not cleanly backport this to |
Sorry, @sobolevn and @kumaraditya303, I could not cleanly backport this to |
_PyDict_FromItems
can only fail withMemoryError
and several other errors which can be considered as disasters, not a regular control flow.But, it should be now in sync with
BUILD_CONST_KEY_MAP