From 05a824f294f1409f33e32f1799d5b413dcf24445 Mon Sep 17 00:00:00 2001 From: Brandt Bucher Date: Fri, 4 Aug 2023 16:24:50 -0700 Subject: GH-84436: Skip refcounting for known immortals (GH-107605) --- Python/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/context.c') 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); } -- cgit v1.2.3