From: Stefan Beller Date: Fri, 1 Apr 2016 00:35:46 +0000 (-0700) Subject: credential-cache, send_request: close fd when done X-Git-Tag: v2.8.3~1^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c60d9faab43f73166d4cebb7c86b1bbf8d8df4b;p=thirdparty%2Fgit.git credential-cache, send_request: close fd when done No need to keep it open any further. Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- diff --git a/credential-cache.c b/credential-cache.c index f4afdc6988..86e21de49b 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; }