Skip to content

Commit 7e92756

Browse files
glandiumgitster
authored andcommitted
http: don't leak urlmatch_config.vars
Signed-off-by: Mike Hommey <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 75b2f01 commit 7e92756

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
@@ -1073,6 +1073,7 @@ void http_init(struct remote *remote, const char *url, int proactive_auth)
10731073

10741074
git_config(urlmatch_config_entry, &config);
10751075
free(normalized_url);
1076+
string_list_clear(&config.vars, 1);
10761077

10771078
#if LIBCURL_VERSION_NUM >= 0x073800
10781079
if (http_ssl_backend) {

0 commit comments

Comments
 (0)