summaryrefslogtreecommitdiff
path: root/credential-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-04-13 21:12:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-04-13 21:12:34 (GMT)
commitfc452aeac2d5d357de2904aebee8d3867f92705c (patch)
treeeddb9131bf8f3abba7be345e77b61624b8106ea8 /credential-cache.c
parent5250af49f03b5f2da96770523f69d7584693b553 (diff)
parent9c60d9faab43f73166d4cebb7c86b1bbf8d8df4b (diff)
downloadgit-fc452aeac2d5d357de2904aebee8d3867f92705c.zip
git-fc452aeac2d5d357de2904aebee8d3867f92705c.tar.gz
git-fc452aeac2d5d357de2904aebee8d3867f92705c.tar.bz2
Merge branch 'sb/misc-cleanups'
Assorted minor clean-ups. * sb/misc-cleanups: credential-cache, send_request: close fd when done bundle: don't leak an fd in case of early return abbrev_sha1_in_line: don't leak memory notes: don't leak memory in git_config_get_notes_strategy
Diffstat (limited to 'credential-cache.c')
-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;
}