From: Johannes Schindelin Date: Thu, 4 May 2017 13:55:52 +0000 (+0200) Subject: status: close file descriptor after reading git-rebase-todo X-Git-Tag: v2.13.1~27^2~18 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/e7b65e205af88755567c3283ee29ca9fb9af11a9 status: close file descriptor after reading git-rebase-todo Reported via Coverity. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/wt-status.c b/wt-status.c index 0375484962..0a6e16dbe0 100644 --- a/wt-status.c +++ b/wt-status.c @@ -1168,6 +1168,7 @@ static int read_rebase_todolist(const char *fname, struct string_list *lines) abbrev_sha1_in_line(&line); string_list_append(lines, line.buf); } + fclose(f); return 0; }