Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e4b9d8c

Browse files
committed
Removing bogus Py_DECREF() reported by Armin Rigo (SF bug 812353).
Even if a new dict is generated for locals, it is stored in f->f_locals.
1 parent 174d276 commit e4b9d8c

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Objects/frameobject.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,6 @@ PyFrame_FastToLocals(PyFrameObject *f)
748748
if (f->f_ncells || f->f_nfreevars) {
749749
if (!(PyTuple_Check(f->f_code->co_cellvars)
750750
&& PyTuple_Check(f->f_code->co_freevars))) {
751-
Py_DECREF(locals);
752751
return;
753752
}
754753
map_to_dict(f->f_code->co_cellvars,

0 commit comments

Comments
 (0)