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>
Phillip Wood committed
Oct 4, 2018 at 11:07 UTC
9c1a6c2bf8375a6652fd98439438e92626a00167
1 file changed
+2
diff.c
+2
@@ -994,6 +994,8 @@ static void pmb_advance_or_null_multi_match(struct diff_options *o,
994
moved_block_clear(&pmb[i]);
995
}
996
}
997
+
998
+ free(got_match);
999
}
1000
1001
static int shrink_potential_moved_blocks(struct moved_block *pmb,