Skip to content

Commit f0fcab6

Browse files
committed
Merge branch 'mh/http-urlmatch-cleanup'
Leakfix. * mh/http-urlmatch-cleanup: http: don't leak urlmatch_config.vars
2 parents bf6136c + 7e92756 commit f0fcab6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

http.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,7 @@ void http_init(struct remote *remote, const char *url, int proactive_auth)
10751075

10761076
git_config(urlmatch_config_entry, &config);
10771077
free(normalized_url);
1078+
string_list_clear(&config.vars, 1);
10781079

10791080
#if LIBCURL_VERSION_NUM >= 0x073800
10801081
if (http_ssl_backend) {

0 commit comments

Comments
 (0)