1
0
mirror of https://github.com/git/git synced 2024-07-02 15:48:44 +00:00

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>
This commit is contained in:
Johannes Schindelin 2017-05-04 15:55:52 +02:00 committed by Junio C Hamano
parent 5f3296c069
commit e7b65e205a

View File

@ -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;
}