changeset 38308:068e774ae29e

bdiff: document that bdiff_freehunks() accepts NULL blocks() of cext/bdiff.c may pass NULL on OOM.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 14 Jun 2018 20:25:16 +0900
parents 519b46a8f4d2
children 93b812d5b818
files mercurial/bdiff.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/bdiff.c	Thu Jun 14 13:44:42 2018 +0200
+++ b/mercurial/bdiff.c	Thu Jun 14 20:25:16 2018 +0900
@@ -310,6 +310,7 @@
 	return count;
 }
 
+/* deallocate list of hunks; l may be NULL */
 void bdiff_freehunks(struct bdiff_hunk *l)
 {
 	struct bdiff_hunk *n;