--- a/mercurial/cext/parsers.c Thu Sep 23 16:44:17 2021 +0900 +++ b/mercurial/cext/parsers.c Thu Sep 23 16:52:35 2021 +0900 @@ -352,6 +352,7 @@ PyErr_Format(PyExc_RuntimeError, "unknown state: `%c` (%d, %d, %d)", state, mode, size, mtime, NULL); + Py_DECREF(t); return NULL; }