summaryrefslogtreecommitdiff
path: root/builtin/log.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-01-04 00:24:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-01-04 00:24:14 (GMT)
commit8bb565d375e14ecbd31dee022b8b28e507e38674 (patch)
tree021d502eb42d007f32ef726c19e7e1c5e3231d63 /builtin/log.c
parent2ae0a9cb8298185a94e5998086f380a355dd8907 (diff)
parentdee839a26331a67f5018e10edb158bdb550d3a32 (diff)
downloadgit-8bb565d375e14ecbd31dee022b8b28e507e38674.zip
git-8bb565d375e14ecbd31dee022b8b28e507e38674.tar.gz
git-8bb565d375e14ecbd31dee022b8b28e507e38674.tar.bz2
Merge branch 'jc/unleak-log'
"git format-patch" uses a single rev_info instance and then exits. Mark the structure with UNLEAK() macro to squelch leak sanitizer. * jc/unleak-log: format-patch: mark rev_info with UNLEAK
Diffstat (limited to 'builtin/log.c')
-rw-r--r--builtin/log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/log.c b/builtin/log.c
index 93ace0d..942c07e 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -2256,6 +2256,7 @@ done:
strbuf_release(&rdiff1);
strbuf_release(&rdiff2);
strbuf_release(&rdiff_title);
+ UNLEAK(rev);
return 0;
}