Skip to content

Commit fd6d0d2

Browse files
committed
Issue python#29368: Fix _Pickle_FastCall() usage in do_append()
_Pickle_FastCall() has a surprising API: it decrements the reference counter of its second argument.
1 parent bee09ae commit fd6d0d2

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Modules/_pickle.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5844,7 +5844,6 @@ do_append(UnpicklerObject *self, Py_ssize_t x)
58445844
return -1;
58455845
}
58465846
result = _Pickle_FastCall(extend_func, slice);
5847-
Py_DECREF(slice);
58485847
Py_DECREF(extend_func);
58495848
if (result == NULL)
58505849
return -1;

0 commit comments

Comments
 (0)