diff options
author | Mike Hommey <mh@glandium.org> | 2021-08-20 17:44:13 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-25 11:41:30 -0700 |
commit | 5146c2f148e903db2d906dae372803d9c8c3bbcf (patch) | |
tree | 608e33c17f998422efd355ce66476c823b12e6ee /credential.c | |
parent | 225bc32a989d7a22fa6addafd4ce7dcd04675dbf (diff) | |
download | git-5146c2f148e903db2d906dae372803d9c8c3bbcf.tar.gz |
credential: fix leak in credential_apply_config()
Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'credential.c')
-rw-r--r-- | credential.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/credential.c b/credential.c index 3c05c7c669..000ac7a8d4 100644 --- a/credential.c +++ b/credential.c @@ -128,6 +128,7 @@ static void credential_apply_config(struct credential *c) normalized_url = url_normalize(url.buf, &config.url); git_config(urlmatch_config_entry, &config); + string_list_clear(&config.vars, 1); free(normalized_url); strbuf_release(&url); |