From: Jeremy Hylton Date: Tue, 21 Oct 2003 18:14:20 +0000 (+0000) Subject: Removing bogus Py_DECREF() reported by Armin Rigo (SF bug 812353). X-Git-Tag: v2.4a1~1395 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4b9d8c2ba032359b3b30316d49f24d9af95a9ac;p=python 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. --- diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 1c46f642d9..ffe9ec3371 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -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,