git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] http: don't leak urlmatch_config.vars

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 26, 2019, 18:09 UTC
Message-ID
<xmqqblwbhk7f.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20190826074911.23792-1-mh@glandium.org>
Mike Hommey <mh@glandium.org> writes:
> Signed-off-by: Mike Hommey <mh@glandium.org>
> ---
>  http.c | 1 +
>  1 file changed, 1 insertion(+)

This matches what builtin/config.c::get_urlmatch() does, which makes sense.

Thanks.
Show 13 quoted lines
>
> 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) {
Previous: Mike Hommey
Message 2 of 2 in “http: don't leak urlmatch_config.vars”
  1. http: don't leak urlmatch_config.varsMike Hommey, Aug 26, 2019
  2. Junio C HamanoAug 26, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.