mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
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:
parent
bee09aecc2
commit
fd6d0d2a18
1 changed files with 0 additions and 1 deletions
|
@ -5844,7 +5844,6 @@ do_append(UnpicklerObject *self, Py_ssize_t x)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
result = _Pickle_FastCall(extend_func, slice);
|
result = _Pickle_FastCall(extend_func, slice);
|
||||||
Py_DECREF(slice);
|
|
||||||
Py_DECREF(extend_func);
|
Py_DECREF(extend_func);
|
||||||
if (result == NULL)
|
if (result == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue