mirror of
https://github.com/python/cpython.git
synced 2025-10-01 04:42:10 +00:00
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.
This commit is contained in:
parent
174d276d8c
commit
e4b9d8c2ba
1 changed files with 0 additions and 1 deletions
|
@ -748,7 +748,6 @@ PyFrame_FastToLocals(PyFrameObject *f)
|
||||||
if (f->f_ncells || f->f_nfreevars) {
|
if (f->f_ncells || f->f_nfreevars) {
|
||||||
if (!(PyTuple_Check(f->f_code->co_cellvars)
|
if (!(PyTuple_Check(f->f_code->co_cellvars)
|
||||||
&& PyTuple_Check(f->f_code->co_freevars))) {
|
&& PyTuple_Check(f->f_code->co_freevars))) {
|
||||||
Py_DECREF(locals);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
map_to_dict(f->f_code->co_cellvars,
|
map_to_dict(f->f_code->co_cellvars,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue