aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/context.c
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2023-08-04 16:24:50 -0700
committerGitHub <noreply@github.com>2023-08-04 16:24:50 -0700
commit05a824f294f1409f33e32f1799d5b413dcf24445 (patch)
tree173417047763313af6cc1a3c4c54f1d510d28d62 /Python/context.c
parentec0a0d2bd9faa247d5b3208a8138e4399b2da890 (diff)
downloadcpython-05a824f294f1409f33e32f1799d5b413dcf24445.tar.gz
cpython-05a824f294f1409f33e32f1799d5b413dcf24445.zip
GH-84436: Skip refcounting for known immortals (GH-107605)
Diffstat (limited to 'Python/context.c')
-rw-r--r--Python/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/context.c b/Python/context.c
index 9ac51874fb5..c94c014219d 100644
--- a/Python/context.c
+++ b/Python/context.c
@@ -1267,7 +1267,7 @@ PyTypeObject _PyContextTokenMissing_Type = {
static PyObject *
get_token_missing(void)
{
- return Py_NewRef(&_Py_SINGLETON(context_token_missing));
+ return (PyObject *)&_Py_SINGLETON(context_token_missing);
}