Commit e4b9d8c2 authored by Jeremy Hylton's avatar Jeremy Hylton

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.
parent 174d276d
...@@ -748,7 +748,6 @@ PyFrame_FastToLocals(PyFrameObject *f) ...@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment