credential: fix leak in credential_apply_config()
Signed-off-by: Mike Hommey <mh@glandium.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
225bc32a98
commit
5146c2f148
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user