# HG changeset patch # User Yuya Nishihara # Date 2018-06-14 11:25:51 # Node ID 93b812d5b818323e5440c969c4e094f284dd7fa0 # Parent 068e774ae29e021a8a0cbe88b7245c2add47dca9 bdiff: one more safe call of bdiff_freehunks(NULL) diff --git a/mercurial/cext/bdiff.c b/mercurial/cext/bdiff.c --- a/mercurial/cext/bdiff.c +++ b/mercurial/cext/bdiff.c @@ -157,9 +157,7 @@ cleanup: PyBuffer_Release(&bb); free(al); free(bl); - if (l.next) { - bdiff_freehunks(l.next); - } + bdiff_freehunks(l.next); return result; }