mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-111495: Fix refleaks in test_capi.test_eval tests (#122851)
This commit is contained in:
parent
8393608dd9
commit
b4a316087c
1 changed files with 3 additions and 3 deletions
|
@ -40,19 +40,19 @@ eval_getframe(PyObject *module, PyObject *Py_UNUSED(args))
|
|||
static PyObject *
|
||||
eval_getframe_builtins(PyObject *module, PyObject *Py_UNUSED(args))
|
||||
{
|
||||
return Py_XNewRef(PyEval_GetFrameBuiltins());
|
||||
return PyEval_GetFrameBuiltins();
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
eval_getframe_globals(PyObject *module, PyObject *Py_UNUSED(args))
|
||||
{
|
||||
return Py_XNewRef(PyEval_GetFrameGlobals());
|
||||
return PyEval_GetFrameGlobals();
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
eval_getframe_locals(PyObject *module, PyObject *Py_UNUSED(args))
|
||||
{
|
||||
return Py_XNewRef(PyEval_GetFrameLocals());
|
||||
return PyEval_GetFrameLocals();
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue