Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2731ae4

Browse files
committed
Fix missing return value. Spotted by Neal Norwitz
1 parent 601b963 commit 2731ae4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Objects/listobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ list_ass_slice(PyListObject *a, int ilow, int ihigh, PyObject *v)
525525
if (list_resize(a, s+d) == -1) {
526526
if (recycle != NULL)
527527
PyMem_DEL(recycle);
528+
return -1;
528529
}
529530
item = a->ob_item;
530531
for (k = s; --k >= ihigh; )

0 commit comments

Comments
 (0)