We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b955d85 commit 5236700Copy full SHA for 5236700
Python/pystate.c
@@ -3219,6 +3219,8 @@ int
3219
PyInterpreterWeakRef_Get(PyInterpreterWeakRef *wref_ptr)
3220
{
3221
PyInterpreterState *interp = PyInterpreterState_Get();
3222
+ /* PyInterpreterWeakRef_Close() can be called without an attached thread
3223
+ state, so we have to use the raw allocator. */
3224
_PyInterpreterWeakRef *wref = PyMem_RawMalloc(sizeof(_PyInterpreterWeakRef));
3225
if (wref == NULL) {
3226
PyErr_NoMemory();
0 commit comments