mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
GH-98363: Shrink the physical size as well as the logical size (GH-100138)
This commit is contained in:
parent
d0679c1239
commit
8c215466db
1 changed files with 1 additions and 2 deletions
|
|
@ -182,8 +182,7 @@ batched_next(batchedobject *bo)
|
|||
Py_DECREF(result);
|
||||
return NULL;
|
||||
}
|
||||
/* Elements in result[i:] are still NULL */
|
||||
Py_SET_SIZE(result, i);
|
||||
_PyTuple_Resize(&result, i);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue