fix refcount error found in MODE=dbg

all tests now pass in MODE=dbg
This commit is contained in:
ahgamut 2021-11-09 03:37:04 +05:30
parent 9aac17ff54
commit 725f4617fd

View file

@ -5983,7 +5983,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;