Skip to content

Commit

Permalink
Issue python#29368: Fix _Pickle_FastCall() usage in do_append()
Browse files Browse the repository at this point in the history
_Pickle_FastCall() has a surprising API: it decrements the reference counter of
its second argument.
  • Loading branch information
vstinner committed Feb 2, 2017
1 parent bee09ae commit fd6d0d2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Modules/_pickle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fd6d0d2

Please sign in to comment.