diff options
-rw-r--r-- | Modules/_testinternalcapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_testinternalcapi.c b/Modules/_testinternalcapi.c index f53929f..ba57719 100644 --- a/Modules/_testinternalcapi.c +++ b/Modules/_testinternalcapi.c @@ -566,6 +566,7 @@ record_eval(PyThreadState *tstate, struct _PyInterpreterFrame *f, int exc) PyObject *module = _get_current_module(); assert(module != NULL); module_state *state = get_module_state(module); + Py_DECREF(module); PyList_Append(state->record_list, ((PyFunctionObject *)f->f_funcobj)->func_name); } return _PyEval_EvalFrameDefault(tstate, f, exc); |