status: close file descriptor after reading git-rebase-todo

Reported via Coverity. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed May 4, 2017 at 15:55 UTC e7b65e205af88755567c3283ee29ca9fb9af11a9
1 file changed +1
wt-status.c
+1
@@ -1168,6 +1168,7 @@ static int read_rebase_todolist(const char *fname, struct string_list *lines)
1168 abbrev_sha1_in_line(&line);
1169 string_list_append(lines, line.buf);
1170 }
1171 + fclose(f);
1172 return 0;
1173 }
1174