diff --git a/diff.c b/diff.c index 38f26091f313c9b63331718168e5d69ee148832b..e0ebddfac9f024945844a77c971ab9a6596e3fb5 100644 --- a/diff.c +++ b/diff.c @@ -994,6 +994,8 @@ static void pmb_advance_or_null_multi_match(struct diff_options *o, moved_block_clear(&pmb[i]); } } + + free(got_match); } static int shrink_potential_moved_blocks(struct moved_block *pmb,