mirror of
https://github.com/git/git.git
synced 2024-05-26 14:06:14 +02:00
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>
This commit is contained in:
parent
f5ff5fb564
commit
9c60d9faab
|
@ -32,6 +32,7 @@ static int send_request(const char *socket, const struct strbuf *out)
|
||||||
write_or_die(1, in, r);
|
write_or_die(1, in, r);
|
||||||
got_data = 1;
|
got_data = 1;
|
||||||
}
|
}
|
||||||
|
close(fd);
|
||||||
return got_data;
|
return got_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue