From: Junio C Hamano Date: Wed, 14 Oct 2015 01:37:52 GMT Subject: [PATCH 27/26] mailinfo: close patchfile Message-ID: In-Reply-To: <1444778207-859-20-git-send-email-gitster@pobox.com> "git mailinfo" itself did not need this, as open file handles are flushed and closed upon process exit, but the libified version needs to clean up after itself when it is done. Signed-off-by: Junio C Hamano --- mailinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailinfo.c b/mailinfo.c index ca40030..00e2ea4 100644 --- a/mailinfo.c +++ b/mailinfo.c @@ -1013,7 +1013,7 @@ int mailinfo(struct mailinfo *mi, const char *msg, const char *patch) fwrite(mi->log_message.buf, 1, mi->log_message.len, cmitmsg); } fclose(cmitmsg); - + fclose(mi->patchfile); return mi->input_error; } -- 2.6.1-320-g86a1181