bdiff: one more safe call of bdiff_freehunks(NULL)
authorYuya Nishihara <yuya@tcha.org>
Thu, 14 Jun 2018 20:25:51 +0900
changeset 38318 93b812d5b818
parent 38317 068e774ae29e
child 38319 2049a21c8396
bdiff: one more safe call of bdiff_freehunks(NULL)
mercurial/cext/bdiff.c
--- a/mercurial/cext/bdiff.c	Thu Jun 14 20:25:16 2018 +0900
+++ b/mercurial/cext/bdiff.c	Thu Jun 14 20:25:51 2018 +0900
@@ -157,9 +157,7 @@
 	PyBuffer_Release(&bb);
 	free(al);
 	free(bl);
-	if (l.next) {
-		bdiff_freehunks(l.next);
-	}
+	bdiff_freehunks(l.next);
 	return result;
 }