mirror of https://github.com/python/cpython
GH-100997: fix refleak in `_testinternalcapi.c` (#101058)
This commit is contained in:
parent
8e9d08b062
commit
74c20b6ece
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue