summaryrefslogtreecommitdiff
path: root/builtin/diff.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-10-07 16:27:55 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-10-07 16:27:55 +0900
commit5261fefa4aa7e9c054e1bd664a138d49a3e26d79 (patch)
treea56d45f14a526fa1bf1da76aa447ed86e1c85a3f /builtin/diff.c
parentMerge branch 'rb/compat-poll-fix' (diff)
parentbuiltin/: add UNLEAKs (diff)
downloadtgif-5261fefa4aa7e9c054e1bd664a138d49a3e26d79.tar.xz
Merge branch 'ma/builtin-unleak'
Many variables that points at a region of memory that will live throughout the life of the program have been marked with UNLEAK marker to help the leak checkers concentrate on real leaks.. * ma/builtin-unleak: builtin/: add UNLEAKs
Diffstat (limited to 'builtin/diff.c')
-rw-r--r--builtin/diff.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/diff.c b/builtin/diff.c
index 7e3ebcea38..f5bbd4d757 100644
--- a/builtin/diff.c
+++ b/builtin/diff.c
@@ -464,5 +464,8 @@ int cmd_diff(int argc, const char **argv, const char *prefix)
result = diff_result_code(&rev.diffopt, result);
if (1 < rev.diffopt.skip_stat_unmatch)
refresh_index_quietly();
+ UNLEAK(rev);
+ UNLEAK(ent);
+ UNLEAK(blob);
return result;
}