mirror of https://github.com/git/git.git
Merge branch 'mh/http-urlmatch-cleanup'
Leakfix. * mh/http-urlmatch-cleanup: http: don't leak urlmatch_config.vars
This commit is contained in:
commit
f0fcab6deb
1
http.c
1
http.c
|
@ -1075,6 +1075,7 @@ void http_init(struct remote *remote, const char *url, int proactive_auth)
|
||||||
|
|
||||||
git_config(urlmatch_config_entry, &config);
|
git_config(urlmatch_config_entry, &config);
|
||||||
free(normalized_url);
|
free(normalized_url);
|
||||||
|
string_list_clear(&config.vars, 1);
|
||||||
|
|
||||||
#if LIBCURL_VERSION_NUM >= 0x073800
|
#if LIBCURL_VERSION_NUM >= 0x073800
|
||||||
if (http_ssl_backend) {
|
if (http_ssl_backend) {
|
||||||
|
|
Loading…
Reference in New Issue