diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-10-21 18:14:20 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-10-21 18:14:20 (GMT) |
commit | e4b9d8c2ba032359b3b30316d49f24d9af95a9ac (patch) | |
tree | 7c3e14d94c116e32ee4218156ccf0efbc9b04ff8 /Objects/frameobject.c | |
parent | 174d276d8cc90412024b151c8d26c586c6a88066 (diff) | |
download | cpython-e4b9d8c2ba032359b3b30316d49f24d9af95a9ac.zip cpython-e4b9d8c2ba032359b3b30316d49f24d9af95a9ac.tar.gz cpython-e4b9d8c2ba032359b3b30316d49f24d9af95a9ac.tar.bz2 |
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.
Diffstat (limited to 'Objects/frameobject.c')
-rw-r--r-- | Objects/frameobject.c | 1 |
1 files changed, 0 insertions, 1 deletions
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, |