]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport removal of bogus Py_DECREF() and indentation fix.
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 21 Oct 2003 18:15:44 +0000 (18:15 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 21 Oct 2003 18:15:44 +0000 (18:15 +0000)
Objects/frameobject.c

index bdff3c41ddd95f8dc4ab69a1218b6c8078d55fab..99defb939fd1b11b44ae823a7d761e1135b188f7 100644 (file)
@@ -744,11 +744,10 @@ PyFrame_FastToLocals(PyFrameObject *f)
        if (j > f->f_nlocals)
                j = f->f_nlocals;
        if (f->f_nlocals)
-           map_to_dict(map, j, locals, fast, 0);
+               map_to_dict(map, j, locals, fast, 0);
        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,