Commit 637c7c47 authored by Alexandre Vassalotti's avatar Alexandre Vassalotti

Fix reference leak in _pickle.

parent 6b02772c
......@@ -5039,11 +5039,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;
......
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