changeset 38309:93b812d5b818

bdiff: one more safe call of bdiff_freehunks(NULL)
author Yuya Nishihara <yuya@tcha.org>
date Thu, 14 Jun 2018 20:25:51 +0900
parents 068e774ae29e
children 2049a21c8396
files mercurial/cext/bdiff.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }