diff --git a/python/message.c b/python/message.c index 0e42a9884c..5ddd03b525 100644 --- a/python/message.c +++ b/python/message.c @@ -1202,7 +1202,7 @@ static PyObject* PyUpb_Message_MergeInternal(PyObject* self, PyObject* arg, if (!serialized) return NULL; PyObject* ret = PyUpb_Message_MergeFromString(self, serialized); Py_DECREF(serialized); - Py_DECREF(ret); + Py_XDECREF(ret); Py_RETURN_NONE; }