8000 gh-111495: Fix refleaks in test_capi.test_eval tests by vstinner · Pull Request #122851 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-111495: Fix refleaks in test_capi.test_eval tests
  • Loading branch information
vstinner committed Aug 9, 2024
commit dd505741cd18008c228e2e883d8d27227ee2afde
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
Loading
0