Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
http: don't leak urlmatch_config.vars
author
Mike Hommey
<mh@glandium.org>
Mon, 26 Aug 2019 07:49:11 +0000
(16:49 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 26 Aug 2019 18:10:09 +0000
(11:10 -0700)
Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
75b2f01
)
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) {