Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Python/pystate.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,9 @@ init_interpreter(PyInterpreterState *interp,
NULL,
&alloc
);
if (interp->open_stackrefs_table == NULL) {
return _PyStatus_NO_MEMORY();
}
# ifdef Py_STACKREF_CLOSE_DEBUG
interp->closed_stackrefs_table = _Py_hashtable_new_full(
_Py_hashtable_hash_ptr,
Expand All @@ -664,6 +667,9 @@ init_interpreter(PyInterpreterState *interp,
NULL,
&alloc
);
if (interp->closed_stackrefs_table == NULL) {
return _PyStatus_NO_MEMORY();
}
# endif
_Py_stackref_associate(interp, Py_None, PyStackRef_None);
_Py_stackref_associate(interp, Py_False, PyStackRef_False);
Expand Down
Loading