diff options
| author | Junio C Hamano <gitster@pobox.com> | 2016-05-18 14:40:15 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2016-05-18 14:40:15 -0700 |
| commit | 66106691a1b71e445fe5e4d6b8b043dffc7dfe4c (patch) | |
| tree | 580fee1afc5f1b54fa2525fe461630a0f6b10c1b /credential-cache.c | |
| parent | 989cbd455619e1e7b6156366ee7fd5376af683b6 (diff) | |
| parent | 99dab16863c2eca584a84bdde748b9c113717603 (diff) | |
| download | git-66106691a1b71e445fe5e4d6b8b043dffc7dfe4c.tar.gz | |
Merge branch 'sb/misc-cleanups' into HEAD
* sb/misc-cleanups:
submodule-config: don't shadow `cache`
config.c: drop local variable
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |
