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

This is obvious in retrospect, it was found with asan.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Phillip Wood 2018-10-04 11:07:44 +01:00 committed by Junio C Hamano
parent fe4516d103
commit 9c1a6c2bf8

2
diff.c
View file

@ -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,