You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_pickle: Py_DECREF seems to be missing from a failure case in fast_save_enter() #76194
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2017-11-13.08:21:13.558>created_at=<Date2017-11-13.05:08:34.362>labels= ['extension-modules', '3.7', 'performance']
title='_pickle: Py_DECREF seems to be missing from a failure case in fast_save_enter()'updated_at=<Date2017-11-13.08:21:13.557>user='https://github.com/lioncash'
Hey there! I'm fairly new to the development process for Python, so I figured I'd start off with something tiny and then work on up from there. I'm not sure if this sort of minor fix warrants an issue being created, but I made this just to err on the safe side of things.
So, as far as I understand (by all means correct me if I'm wrong), a 'Py_DECREF(key);' should be present before the return in the conditional within fast_save_enter() (
New changeset f76231f by Serhiy Storchaka (Mat M) in branch 'master': bpo-32013: _pickle: Add missing Py_DECREF in error case in fast_save_enter() (bpo-4384) f76231f
New changeset 6ed9d4e by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-32013: _pickle: Add missing Py_DECREF in error case in fast_save_enter() (GH-4384) (bpo-4385) 6ed9d4e
Activity
lioncash commentedon Nov 13, 2017
Hey there! I'm fairly new to the development process for Python, so I figured I'd start off with something tiny and then work on up from there. I'm not sure if this sort of minor fix warrants an issue being created, but I made this just to err on the safe side of things.
So, as far as I understand (by all means correct me if I'm wrong), a 'Py_DECREF(key);' should be present before the return in the conditional within fast_save_enter() (
cpython/Modules/_pickle.c
Line 1792 in d7d4fea
serhiy-storchaka commentedon Nov 13, 2017
New changeset f76231f by Serhiy Storchaka (Mat M) in branch 'master':
bpo-32013: _pickle: Add missing Py_DECREF in error case in fast_save_enter() (bpo-4384)
f76231f
serhiy-storchaka commentedon Nov 13, 2017
New changeset 6ed9d4e by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6':
bpo-32013: _pickle: Add missing Py_DECREF in error case in fast_save_enter() (GH-4384) (bpo-4385)
6ed9d4e