-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-130179: Fix some references leaks in _pickle #130180
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
gh-130179: Fix some references leaks in _pickle #130180
Conversation
@serhiy-storchaka Please take a look. It seems related to your changes. |
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.
Indeed, it looks like an oversight.
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.
Thank you!
Refs #125752 |
(I disabled/enabled the auto-merge because I had a typo in the commit message and it's not possible to edit it after hitting the auto-merge button) |
Oh the ARM build is failing with the usual network error. I'll re-disable the auto-merge just in case we need to re-update the PR later. |
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.
LGTM. 👍
Thanks @sergey-miryanov for the PR, and @sobolevn for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…_pickle` (pythonGH-130180) (cherry picked from commit e7f00cd) Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
GH-130190 is a backport of this pull request to the 3.13 branch. |
I found some possible memory leaks in _pickle. This PR fixes it.
Py_CLEAR/Py_VISIT
calls forUnpickler.persistent_load_attr
andPickler.persistent_id_attr
#130179