Skip to content

Commit 4fa53c7

Browse files
committed
Use the active thread's QSBR state
1 parent 15bd961 commit 4fa53c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/obmalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ _PyMem_AbandonDelayed(PyThreadState *tstate)
13781378
llist_concat(&interp->mem_free_queue.head, queue);
13791379

13801380
// Process the merged queue now (see gh-130794).
1381-
_PyThreadStateImpl *this_tstate = (_PyThreadStateImpl *)tstate;
1381+
_PyThreadStateImpl *this_tstate = (_PyThreadStateImpl *)_PyThreadState_GET();
13821382
process_interp_queue(&interp->mem_free_queue, this_tstate->qsbr, NULL, NULL);
13831383

13841384
PyMutex_Unlock(&interp->mem_free_queue.mutex);

0 commit comments

Comments
 (0)