summaryrefslogtreecommitdiff
path: root/wt-status.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2017-05-04 15:55:52 +0200
committerJunio C Hamano <gitster@pobox.com>2017-05-08 12:18:19 +0900
commite7b65e205af88755567c3283ee29ca9fb9af11a9 (patch)
treee332ae5d1d7504fb800fc0f8d3ea00d4151db0a7 /wt-status.c
parent5f3296c069bfe2872592f96b29bdcc8f0edd5eb8 (diff)
downloadgit-e7b65e205af88755567c3283ee29ca9fb9af11a9.tar.gz
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>
Diffstat (limited to 'wt-status.c')
-rw-r--r--wt-status.c1
1 files changed, 1 insertions, 0 deletions
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;
}