Skip to content

Commit e7b65e2

Browse files
dschogitster
authored andcommitted
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>
1 parent 5f3296c commit e7b65e2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wt-status.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,7 @@ static int read_rebase_todolist(const char *fname, struct string_list *lines)
11681168
abbrev_sha1_in_line(&line);
11691169
string_list_append(lines, line.buf);
11701170
}
1171+
fclose(f);
11711172
return 0;
11721173
}
11731174

0 commit comments

Comments
 (0)