diff options
author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2018-10-04 12:07:44 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-05 07:48:17 +0200 |
commit | 9c1a6c2bf8375a6652fd98439438e92626a00167 (patch) | |
tree | 7b631be3590c738f2789ee1d047e84fac78be246 /diff.c | |
parent | diff --color-moved-ws: fix a memory leak (diff) | |
download | git-9c1a6c2bf8375a6652fd98439438e92626a00167.tar.xz git-9c1a6c2bf8375a6652fd98439438e92626a00167.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | diff.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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, |