Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
read_branches_file: plug a FILE* leak
[gitweb.git]
/
remote.c
diff --git
a/remote.c
b/remote.c
index 1101f82eaf34b936d51e0d61837c568b3691a468..fb161530cdd5e286716d45532c1d58da26250e22 100644
(file)
--- a/
remote.c
+++ b/
remote.c
@@
-282,6
+282,7
@@
static void read_branches_file(struct remote *remote)
return;
strbuf_getline(&buf, f, '\n');
+ fclose(f);
strbuf_trim(&buf);
if (!buf.len) {
strbuf_release(&buf);