Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ågren <martin.agren@gmail.com>2017-10-01 20:42:08 +0300
committerJunio C Hamano <gitster@pobox.com>2017-10-02 07:03:10 +0300
commit886e1084d78cda218b4d1133e8154e8556f92222 (patch)
tree2114089d84f6112c5bca73b3360fce8c820f25ab /builtin/diff-index.c
parent4010f1d1b782eb7585e0e0abcefa794bd5ff29a0 (diff)
builtin/: add UNLEAKs
Add some UNLEAKs where we are about to return from `cmd_*`. UNLEAK the variables in the same order as we've declared them. While addressing `msg` in builtin/tag.c, convert the existing `strbuf_release()` calls as well. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 185e6f9b58..09959f254f 100644
--- a/builtin/diff-index.c
+++ b/builtin/diff-index.c
@@ -57,5 +57,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);
}