Skip to content

Commit a18d66c

Browse files
avargitster
authored andcommitted
diff.c: free "buf" in diff_words_flush()
Amend the freeing logic added in e6e045f (diff.c: buffer all output if asked to, 2017-06-29) to free the containing "buf" in addition to its members. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e69fe2e commit a18d66c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

diff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2150,6 +2150,7 @@ static void diff_words_flush(struct emit_callback *ecbdata)
21502150

21512151
for (i = 0; i < wol->nr; i++)
21522152
free((void *)wol->buf[i].line);
2153+
free(wol->buf);
21532154

21542155
wol->nr = 0;
21552156
}

0 commit comments

Comments
 (0)