# HG changeset patch # User Yuya Nishihara # Date 2018-06-14 11:25:16 # Node ID 068e774ae29e021a8a0cbe88b7245c2add47dca9 # Parent 519b46a8f4d2bfa6affb19149881517cb31d59af bdiff: document that bdiff_freehunks() accepts NULL blocks() of cext/bdiff.c may pass NULL on OOM. diff --git a/mercurial/bdiff.c b/mercurial/bdiff.c --- a/mercurial/bdiff.c +++ b/mercurial/bdiff.c @@ -310,6 +310,7 @@ int bdiff_diff(struct bdiff_line *a, int return count; } +/* deallocate list of hunks; l may be NULL */ void bdiff_freehunks(struct bdiff_hunk *l) { struct bdiff_hunk *n;