--- a/mercurial/cext/revlog.c Sun May 30 18:09:29 2021 +0200 +++ b/mercurial/cext/revlog.c Mon Jun 07 17:10:35 2021 -0400 @@ -992,6 +992,7 @@ phasesets[i] = NULL; } + free(phases); return Py_BuildValue("nN", len, phasesetsdict); release: