summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-09-23 21:06:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-09-23 21:06:52 (GMT)
commit4e9efa5aa3430f0b267a08d77e9d572301fdf4e9 (patch)
treeef6cc3ee2abd9e66412b88586febf3b736bee8ba
parent690d443a26acca666db6f9249e3224f3f341aa5b (diff)
parent66a587421d9a89f1edebdd348821fb641c30fd4e (diff)
downloadgit-4e9efa5aa3430f0b267a08d77e9d572301fdf4e9.zip
git-4e9efa5aa3430f0b267a08d77e9d572301fdf4e9.tar.gz
git-4e9efa5aa3430f0b267a08d77e9d572301fdf4e9.tar.bz2
Merge branch 'ah/unreak-revisions' into jch
Mark a few structures with UNLEAK() to help leak detection CI jobs. * ah/unreak-revisions: log: UNLEAK original pending objects log: UNLEAK rev to silence a large number of leaks
-rw-r--r--builtin/log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/log.c b/builtin/log.c
index f75d87e..769ee6a 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -644,6 +644,7 @@ int cmd_show(int argc, const char **argv, const char *prefix)
opt.def = "HEAD";
opt.tweak = show_setup_revisions_tweak;
cmd_log_init(argc, argv, prefix, &rev, &opt);
+ UNLEAK(rev);
if (!rev.no_walk)
return cmd_log_walk(&rev);
@@ -701,7 +702,8 @@ int cmd_show(int argc, const char **argv, const char *prefix)
ret = error(_("unknown type: %d"), o->type);
}
}
- free(objects);
+ UNLEAK(objects);
+
return ret;
}