summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-04-01 00:35:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-04-01 17:33:18 (GMT)
commit9c60d9faab43f73166d4cebb7c86b1bbf8d8df4b (patch)
tree117ccb7f588291213199bdafc7576bdbdc3890ae
parentf5ff5fb56485979895cff5954e4db1ea4ff4c9f7 (diff)
downloadgit-9c60d9faab43f73166d4cebb7c86b1bbf8d8df4b.zip
git-9c60d9faab43f73166d4cebb7c86b1bbf8d8df4b.tar.gz
git-9c60d9faab43f73166d4cebb7c86b1bbf8d8df4b.tar.bz2
credential-cache, send_request: close fd when done
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>
-rw-r--r--credential-cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/credential-cache.c b/credential-cache.c
index f4afdc6..86e21de 100644
--- 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;
}