bpo-32013: _pickle: Add missing Py_DECREF in error case in fast_save_enter()#4384
Conversation
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. Thanks again to your contribution and we look forward to looking at it! |
There was a problem hiding this comment.
I think it is worth to add self->fast_nesting = -1; here and before other return 0 above.
|
Thank you for your contribution @lioncash! It is not required for this simple change, but would be nice if you sign the PSF contributor agreement (CLA). Just for the case of your future more complex pull requests. |
|
Thanks @lioncash for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6. |
|
GH-4385 is a backport of this pull request to the 3.6 branch. |
…enter() (pythonGH-4384) (cherry picked from commit f76231f)
Hi! As said on the issue filed. I'm new to the development/contribution process for Python, so I figured I'd start with something small, just get used to things.
As far as I understand, there should be a Py_DECREF in this conditional.
https://bugs.python.org/issue32013