GH-98363: Shrink the physical size as well as the logical size (GH-100138)

This commit is contained in:
Raymond Hettinger
2022-12-09 11:02:35 -06:00
committed by GitHub
parent d0679c1239
commit 8c215466db

View File

@@ -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;
}