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 <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent f5ff5fb commit 9c60d9f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)