gh-109216: Fix possible memory leak in BUILD_MAP#109257
gh-109216: Fix possible memory leak in BUILD_MAP#109257kumaraditya303 merged 1 commit intopython:mainfrom
BUILD_MAP#109257Conversation
gvanrossum
left a comment
There was a problem hiding this comment.
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_FromItemscan only fail withMemoryErrorand 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