# HG changeset patch # User Yuya Nishihara # Date 1632383555 -32400 # Node ID 448aff4e8dd43704fd0d9aa4382b1492dd03b35a # Parent 13efd8fdc55fe3ed8ab195fff0c52a249d4dcc73 dirstate: fix leak of entry object in dirstate_item_from_v1_data() diff -r 13efd8fdc55f -r 448aff4e8dd4 mercurial/cext/parsers.c --- 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; }