Merge branch 'mh/credential-leakfix'

Leak fix.

* mh/credential-leakfix:
  credential: fix leak in credential_apply_config()
maint
Junio C Hamano 2021-09-08 13:30:30 -07:00
commit efae5c2e22
1 changed files with 1 additions and 0 deletions

View File

@ -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);