summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-12-16 13:08:46 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-12-16 13:08:46 -0800
commitd1c0fe8d9b16bf8b6b1cc0e83fac6670e3f64f0f (patch)
tree8885156cb43cf3b23cb30f0409c57ac56c3b1c26 /builtin
parentMerge branch 'hw/doc-in-header' (diff)
parentrange-diff: clear `other_arg` at end of function (diff)
downloadtgif-d1c0fe8d9b16bf8b6b1cc0e83fac6670e3f64f0f.tar.xz
Merge branch 'dl/range-diff-with-notes'
Code clean-up. * dl/range-diff-with-notes: range-diff: clear `other_arg` at end of function range-diff: mark pointers as const t3206: fix incorrect test name
Diffstat (limited to 'builtin')
-rw-r--r--builtin/range-diff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/range-diff.c b/builtin/range-diff.c
index 98acf3533e..d8a4670629 100644
--- a/builtin/range-diff.c
+++ b/builtin/range-diff.c
@@ -84,6 +84,7 @@ int cmd_range_diff(int argc, const char **argv, const char *prefix)
res = show_range_diff(range1.buf, range2.buf, creation_factor,
simple_color < 1, &diffopt, &other_arg);
+ argv_array_clear(&other_arg);
strbuf_release(&range1);
strbuf_release(&range2);