mirror of https://github.com/python/cpython.git
gh-111495: Fix refleaks in test_capi.test_eval tests (#122851)
This commit is contained in:
parent
8393608dd9
commit
b4a316087c
|
@ -40,19 +40,19 @@ eval_getframe(PyObject *module, PyObject *Py_UNUSED(args))
|
||||||
static PyObject *
|
static PyObject *
|
||||||
eval_getframe_builtins(PyObject *module, PyObject *Py_UNUSED(args))
|
eval_getframe_builtins(PyObject *module, PyObject *Py_UNUSED(args))
|
||||||
{
|
{
|
||||||
return Py_XNewRef(PyEval_GetFrameBuiltins());
|
return PyEval_GetFrameBuiltins();
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
eval_getframe_globals(PyObject *module, PyObject *Py_UNUSED(args))
|
eval_getframe_globals(PyObject *module, PyObject *Py_UNUSED(args))
|
||||||
{
|
{
|
||||||
return Py_XNewRef(PyEval_GetFrameGlobals());
|
return PyEval_GetFrameGlobals();
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
eval_getframe_locals(PyObject *module, PyObject *Py_UNUSED(args))
|
eval_getframe_locals(PyObject *module, PyObject *Py_UNUSED(args))
|
||||||
{
|
{
|
||||||
return Py_XNewRef(PyEval_GetFrameLocals());
|
return PyEval_GetFrameLocals();
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
Loading…
Reference in New Issue