Thread (151 messages) 151 messages, 6 authors, 2017-05-11
STALE3334d

[PATCH v4 08/25] status: close file descriptor after reading git-rebase-todo

From: Johannes Schindelin <hidden>
Date: 2017-05-04 13:56:30
Subsystem: the rest · Maintainer: Linus Torvalds

Reported via Coverity.

Signed-off-by: Johannes Schindelin <redacted>
---
 wt-status.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/wt-status.c b/wt-status.c
index 03754849626..0a6e16dbe0f 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;
 }
 
-- 
2.12.2.windows.2.800.gede8f145e06

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help