From 6a0e86bebc72c66e9da4925bb3ec85e9600a8795 Mon Sep 17 00:00:00 2001 From: "zainnadeem(RedOpsCell)" Date: Thu, 25 Jun 2026 12:37:37 +0500 Subject: [PATCH] gh-151763: Fix free-threaded OOM cleanup for initial thread state --- Python/pystate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/pystate.c b/Python/pystate.c index fed1df0173bacf1..e0030bf136e05a9 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -1505,6 +1505,7 @@ alloc_threadstate(PyInterpreterState *interp) } reset_threadstate(tstate); } + tstate->base.interp = interp; return tstate; }