]> git.ipfire.org Git - thirdparty/git.git/blobdiff - http.c
http: don't leak urlmatch_config.vars
[thirdparty/git.git] / http.c
diff --git a/http.c b/http.c
index 27aa0a3192988cd0c272dab0e9f6cf52d538b6fa..9e33584f2d159de2983dccc74f177e9aeb3011b1 100644 (file)
--- a/http.c
+++ b/http.c
@@ -1073,6 +1073,7 @@ void http_init(struct remote *remote, const char *url, int proactive_auth)
 
        git_config(urlmatch_config_entry, &config);
        free(normalized_url);
+       string_list_clear(&config.vars, 1);
 
 #if LIBCURL_VERSION_NUM >= 0x073800
        if (http_ssl_backend) {