mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
GH-100997: fix refleak in _testinternalcapi.c (#101058)
This commit is contained in:
parent
8e9d08b062
commit
74c20b6ece
1 changed files with 1 additions and 0 deletions
|
|
@ -566,6 +566,7 @@ record_eval(PyThreadState *tstate, struct _PyInterpreterFrame *f, int exc)
|
||||||
PyObject *module = _get_current_module();
|
PyObject *module = _get_current_module();
|
||||||
assert(module != NULL);
|
assert(module != NULL);
|
||||||
module_state *state = get_module_state(module);
|
module_state *state = get_module_state(module);
|
||||||
|
Py_DECREF(module);
|
||||||
PyList_Append(state->record_list, ((PyFunctionObject *)f->f_funcobj)->func_name);
|
PyList_Append(state->record_list, ((PyFunctionObject *)f->f_funcobj)->func_name);
|
||||||
}
|
}
|
||||||
return _PyEval_EvalFrameDefault(tstate, f, exc);
|
return _PyEval_EvalFrameDefault(tstate, f, exc);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue