There was an error while loading. Please reload this page.
Py_STACKREF_DEBUG
1 parent b383aa6 commit ecdef17Copy full SHA for ecdef17
1 file changed
Python/pystate.c
@@ -656,6 +656,9 @@ init_interpreter(PyInterpreterState *interp,
656
NULL,
657
&alloc
658
);
659
+ if (interp->open_stackrefs_table == NULL) {
660
+ return _PyStatus_NO_MEMORY();
661
+ }
662
# ifdef Py_STACKREF_CLOSE_DEBUG
663
interp->closed_stackrefs_table = _Py_hashtable_new_full(
664
_Py_hashtable_hash_ptr,
@@ -664,6 +667,9 @@ init_interpreter(PyInterpreterState *interp,
667
665
668
666
669
670
+ if (interp->closed_stackrefs_table == NULL) {
671
672
673
# endif
674
_Py_stackref_associate(interp, Py_None, PyStackRef_None);
675
_Py_stackref_associate(interp, Py_False, PyStackRef_False);
0 commit comments