Skip to content

Commit d06324a

Browse files
committed
Hold onto the "base" chunk
1 parent 9bf9e6a commit d06324a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/pystate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ push_chunk(PyThreadState *tstate, int size)
21992199
}
22002200
tstate->datastack_chunk = new;
22012201
tstate->datastack_limit = (PyObject **)(((char *)new) + allocate_size);
2202-
PyObject **res = &new->data[0];
2202+
PyObject **res = &new->data[new->previous == NULL];
22032203
tstate->datastack_top = res + size;
22042204
return res;
22052205
}

0 commit comments

Comments
 (0)