summaryrefslogtreecommitdiff
path: root/builtin/diff-index.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-10-07 07:27:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-10-07 07:27:55 (GMT)
commit5261fefa4aa7e9c054e1bd664a138d49a3e26d79 (patch)
treea56d45f14a526fa1bf1da76aa447ed86e1c85a3f /builtin/diff-index.c
parent1f57e71fabffd801d026c08e7acade834dcc16bb (diff)
parent886e1084d78cda218b4d1133e8154e8556f92222 (diff)
downloadgit-5261fefa4aa7e9c054e1bd664a138d49a3e26d79.zip
git-5261fefa4aa7e9c054e1bd664a138d49a3e26d79.tar.gz
git-5261fefa4aa7e9c054e1bd664a138d49a3e26d79.tar.bz2
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-index.c')
-rw-r--r--builtin/diff-index.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/diff-index.c b/builtin/diff-index.c
index 9d772f8..522f4fd 100644
--- a/builtin/diff-index.c
+++ b/builtin/diff-index.c
@@ -56,5 +56,6 @@ int cmd_diff_index(int argc, const char **argv, const char *prefix)
return -1;
}
result = run_diff_index(&rev, cached);
+ UNLEAK(rev);
return diff_result_code(&rev.diffopt, result);
}