Skip to content

Commit 8bb565d

Browse files
committed
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
2 parents 2ae0a9c + dee839a commit 8bb565d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/log.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,6 +2256,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
22562256
strbuf_release(&rdiff1);
22572257
strbuf_release(&rdiff2);
22582258
strbuf_release(&rdiff_title);
2259+
UNLEAK(rev);
22592260
return 0;
22602261
}
22612262

0 commit comments

Comments
 (0)