Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
diff --color-moved-ws: fix another memory leak
author
Phillip Wood
<phillip.wood@dunelm.org.uk>
Thu, 4 Oct 2018 10:07:44 +0000
(11:07 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 5 Oct 2018 05:48:17 +0000
(22:48 -0700)
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>
diff.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
fe4516d
)
diff --git
a/diff.c
b/diff.c
index 38f26091f313c9b63331718168e5d69ee148832b..e0ebddfac9f024945844a77c971ab9a6596e3fb5 100644
(file)
--- 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,