gh-111495: Fix refleaks in test_capi.test_eval tests (#122851)

This commit is contained in:
Victor Stinner 2024-08-09 11:47:00 +02:00 committed by GitHub
parent 8393608dd9
commit b4a316087c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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 *