提交 9c1a6c2b 编写于 作者: P Phillip Wood 提交者: Junio C Hamano

diff --color-moved-ws: fix another memory leak

This is obvious in retrospect, it was found with asan.
Signed-off-by: NPhillip Wood <phillip.wood@dunelm.org.uk>
Reviewed-by: NStefan Beller <sbeller@google.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 fe4516d1
...@@ -994,6 +994,8 @@ static void pmb_advance_or_null_multi_match(struct diff_options *o, ...@@ -994,6 +994,8 @@ static void pmb_advance_or_null_multi_match(struct diff_options *o,
moved_block_clear(&pmb[i]); moved_block_clear(&pmb[i]);
} }
} }
free(got_match);
} }
static int shrink_potential_moved_blocks(struct moved_block *pmb, static int shrink_potential_moved_blocks(struct moved_block *pmb,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册