diff options
Diffstat (limited to 'Objects/frameobject.c')
-rw-r--r-- | Objects/frameobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 621f8996ccb..85c24550d0b 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -1796,8 +1796,7 @@ init_frame(_PyInterpreterFrame *frame, PyFunctionObject *func, PyObject *locals) { PyCodeObject *code = (PyCodeObject *)func->func_code; _PyFrame_Initialize(frame, (PyFunctionObject*)Py_NewRef(func), - Py_XNewRef(locals), code, 0); - frame->previous = NULL; + Py_XNewRef(locals), code, 0, NULL); } PyFrameObject* |