From e4b9d8c2ba032359b3b30316d49f24d9af95a9ac Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Tue, 21 Oct 2003 18:14:20 +0000 Subject: 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. --- Objects/frameobject.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 1c46f64..ffe9ec3 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, -- cgit v0.12