Skip to content

Commit 9c60d9f

Browse files
stefanbellergitster
authored andcommitted
credential-cache, send_request: close fd when done
No need to keep it open any further. Signed-off-by: Stefan Beller <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f5ff5fb commit 9c60d9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

credential-cache.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ static int send_request(const char *socket, const struct strbuf *out)
3232
write_or_die(1, in, r);
3333
got_data = 1;
3434
}
35+
close(fd);
3536
return got_data;
3637
}
3738

0 commit comments

Comments
 (0)