Skip to content

Commit e520032

Browse files
author
Anselm Kruis
committed
Stackless issue python#141: Py_DECREF with wrong recursion_depth
Call Py_DECREF(frame) with the right recursion_depth.
1 parent 2715b0c commit e520032

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Python/ceval.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4611,8 +4611,6 @@ _PyEval_EvalCodeWithName(PyObject *_co, PyObject *globals, PyObject *locals,
46114611
Py_DECREF(retval);
46124612
retval = slp_eval_frame(f);
46134613
}
4614-
Py_DECREF(f);
4615-
return retval;
46164614
}
46174615
#else
46184616
retval = PyEval_EvalFrameEx(f,0);

Stackless/changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ What's New in Stackless 3.X.X?
99

1010
*Release date: 20XX-XX-XX*
1111

12+
- https://github.com/stackless-dev/stackless/issues/141
13+
Call Py_DECREF(frame) with the right recursion_depth.
14+
1215
- https://github.com/stackless-dev/stackless/issues/137
1316
C-API: All functions of the form Py{Object, Function, CFunction}_*Call* now
1417
use STACKLESS_PROMOTE_xxx internally and may be called with

0 commit comments

Comments
 (0)