diff options
author | satori1995 <132636720+satori1995@users.noreply.github.com> | 2024-07-10 07:48:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-10 07:48:25 (GMT) |
commit | 9585a1a2a251aaa15baf6579e13dd3be0cb05f1f (patch) | |
tree | 9c07548b354b718022337a0f7218e230605fa921 /Objects | |
parent | f62161837e68c1c77961435f1b954412dd5c2b65 (diff) | |
download | cpython-9585a1a2a251aaa15baf6579e13dd3be0cb05f1f.zip cpython-9585a1a2a251aaa15baf6579e13dd3be0cb05f1f.tar.gz cpython-9585a1a2a251aaa15baf6579e13dd3be0cb05f1f.tar.bz2 |
GH-121439: Allow PyTupleObjects with an ob_size of 20 in the free_list to be reused (gh-121428)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/tupleobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 994258f..3704d09 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -1153,7 +1153,7 @@ maybe_freelist_pop(Py_ssize_t size) return NULL; } assert(size > 0); - if (size < PyTuple_MAXSAVESIZE) { + if (size <= PyTuple_MAXSAVESIZE) { Py_ssize_t index = size - 1; PyTupleObject *op = TUPLE_FREELIST.items[index]; if (op != NULL) { |