We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26d50fd commit 42edbeaCopy full SHA for 42edbea
1 file changed
Python/marshal.c
@@ -1660,8 +1660,7 @@ r_object(RFILE *p)
1660
PyObject *step = NULL;
1661
PyObject *start = NULL;
1662
1663
- if (idx < 0 && flag) {
1664
- // r_ref_reserve failed
+ if (idx < 0) {
1665
break;
1666
}
1667
@@ -1678,9 +1677,6 @@ r_object(RFILE *p)
1678
1677
goto cleanup;
1679
1680
retval = PySlice_New(start, stop, step);
1681
- if (retval != NULL) {
1682
- r_ref_insert(retval, idx, flag, p);
1683
- }
1684
cleanup:
1685
Py_XDECREF(start);
1686
Py_XDECREF(stop);
0 commit comments