Skip to content

Commit 17aadcb

Browse files
committed
Incorporating review comments
1 parent 386d087 commit 17aadcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/marshal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1659,7 +1659,6 @@ r_object(RFILE *p)
16591659
PyObject *stop = NULL;
16601660
PyObject *step = NULL;
16611661
PyObject *start = NULL;
1662-
16631662
if (idx < 0) {
16641663
break;
16651664
}
@@ -1676,6 +1675,7 @@ r_object(RFILE *p)
16761675
goto cleanup;
16771676
}
16781677
retval = PySlice_New(start, stop, step);
1678+
r_ref_insert(retval, idx, flag, p);
16791679
cleanup:
16801680
Py_XDECREF(start);
16811681
Py_XDECREF(stop);

0 commit comments

Comments
 (0)