Skip to content

Commit

Permalink
pythongh-111495: Fix refleaks in test_capi.test_eval tests (python#12…
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner authored Aug 9, 2024
1 parent 8393608 commit b4a3160
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modules/_testlimitedcapi/eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit b4a3160

Please sign in to comment.