There was an error while loading. Please reload this page.
_testinternalcapi.c
1 parent 8e9d08b commit 74c20b6Copy full SHA for 74c20b6
1 file changed
Modules/_testinternalcapi.c
@@ -566,6 +566,7 @@ record_eval(PyThreadState *tstate, struct _PyInterpreterFrame *f, int exc)
566
PyObject *module = _get_current_module();
567
assert(module != NULL);
568
module_state *state = get_module_state(module);
569
+ Py_DECREF(module);
570
PyList_Append(state->record_list, ((PyFunctionObject *)f->f_funcobj)->func_name);
571
}
572
return _PyEval_EvalFrameDefault(tstate, f, exc);
0 commit comments