From 7e927567519ade8e1e2daf19108f433703c00114 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Mon, 26 Aug 2019 16:49:11 +0900 Subject: http: don't leak urlmatch_config.vars Signed-off-by: Mike Hommey Signed-off-by: Junio C Hamano --- http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/http.c b/http.c index 27aa0a3192..9e33584f2d 100644 --- 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) { -- cgit v1.2.3