Skip to content

Commit

Permalink
GH-100997: fix refleak in _testinternalcapi.c (#101058)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraditya303 authored Jan 16, 2023
1 parent 8e9d08b commit 74c20b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/_testinternalcapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 74c20b6

Please sign in to comment.