diff options
-rw-r--r-- | Modules/_pickle.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c index fbbb745..443fbe2 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -5058,11 +5058,13 @@ do_append(UnpicklerObject *self, Py_ssize_t x) if (result == NULL) { Pdata_clear(self->stack, i + 1); Py_SIZE(self->stack) = x; + Py_DECREF(append_func); return -1; } Py_DECREF(result); } Py_SIZE(self->stack) = x; + Py_DECREF(append_func); } return 0; |