Skip to content

Commit 42edbea

Browse files
committed
Incorporating review comments
1 parent 26d50fd commit 42edbea

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Python/marshal.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,8 +1660,7 @@ r_object(RFILE *p)
16601660
PyObject *step = NULL;
16611661
PyObject *start = NULL;
16621662

1663-
if (idx < 0 && flag) {
1664-
// r_ref_reserve failed
1663+
if (idx < 0) {
16651664
break;
16661665
}
16671666

@@ -1678,9 +1677,6 @@ r_object(RFILE *p)
16781677
goto cleanup;
16791678
}
16801679
retval = PySlice_New(start, stop, step);
1681-
if (retval != NULL) {
1682-
r_ref_insert(retval, idx, flag, p);
1683-
}
16841680
cleanup:
16851681
Py_XDECREF(start);
16861682
Py_XDECREF(stop);

0 commit comments

Comments
 (0)