commit | e7b65e205af88755567c3283ee29ca9fb9af11a9 | [log] [tgz] |
---|---|---|
author | Johannes Schindelin <johannes.schindelin@gmx.de> | Thu May 04 15:55:52 2017 +0200 |
committer | Junio C Hamano <gitster@pobox.com> | Mon May 08 12:18:19 2017 +0900 |
tree | e332ae5d1d7504fb800fc0f8d3ea00d4151db0a7 | |
parent | 5f3296c069bfe2872592f96b29bdcc8f0edd5eb8 [diff] [blame] |
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>
diff --git a/wt-status.c b/wt-status.c index 0375484..0a6e16d 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; }