My Various Git Projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5ff5fb
)
credential-cache, send_request: close fd when done
author
Stefan Beller
<sbeller@google.com>
Fri, 1 Apr 2016 00:35:46 +0000
(17:35 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 1 Apr 2016 17:33:18 +0000
(10:33 -0700)
No need to keep it open any further.
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
credential-cache.c
patch
|
blob
|
history
diff --git
a/credential-cache.c
b/credential-cache.c
index
f4afdc6
..
86e21de
100644
(file)
--- a/
credential-cache.c
+++ b/
credential-cache.c
@@
-32,6
+32,7
@@
static int send_request(const char *socket, const struct strbuf *out)
write_or_die(1, in, r);
got_data = 1;
}
+ close(fd);
return got_data;
}