Issue #29368: Fix _Pickle_FastCall() usage in do_append()

_Pickle_FastCall() has a surprising API: it decrements the reference counter of
its second argument.
This commit is contained in:
Victor Stinner 2017-02-02 10:56:47 +01:00
parent bee09aecc2
commit fd6d0d2a18

View file

@ -5844,7 +5844,6 @@ do_append(UnpicklerObject *self, Py_ssize_t x)
return -1;
}
result = _Pickle_FastCall(extend_func, slice);
Py_DECREF(slice);
Py_DECREF(extend_func);
if (result == NULL)
return -1;