Browse Source

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

_Pickle_FastCall() has a surprising API: it decrements the reference counter of
its second argument.
pull/2/head
Victor Stinner 9 years ago
parent
commit
fd6d0d2a18
  1. 1
      Modules/_pickle.c

1
Modules/_pickle.c

@ -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;

Loading…
Cancel
Save