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:
Jeremy Hylton 2003-10-21 18:14:20 +00:00
parent 174d276d8c
commit e4b9d8c2ba

View file

@ -748,7 +748,6 @@ PyFrame_FastToLocals(PyFrameObject *f)
if (f->f_ncells || f->f_nfreevars) {
if (!(PyTuple_Check(f->f_code->co_cellvars)
&& PyTuple_Check(f->f_code->co_freevars))) {
Py_DECREF(locals);
return;
}
map_to_dict(f->f_code->co_cellvars,