提交 e38ee06e 编写于 作者: J Junio C Hamano

mailinfo: explicitly close file handle to the patch output

This does not make a difference within the context of "git mailinfo"
that runs once and exits, as flushing and closing would happen upon
process termination.  It however will matter when we eventually make
it callable as an API function.

Besides, cleaning after yourself once you are done is a good hygiene.
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 b6af8ed1
......@@ -999,6 +999,8 @@ static int mailinfo(FILE *in, FILE *out, const char *msg, const char *patch)
check_header(&line, p_hdr_data, 1);
handle_body();
fclose(patchfile);
handle_info();
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册