Kaydet (Commit) fd6d0d2a authored tarafından Victor Stinner's avatar Victor Stinner

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

_Pickle_FastCall() has a surprising API: it decrements the reference counter of
its second argument.
üst bee09aec
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment