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

[PATCH] Fix leak in credential_apply_config

From
Mike Hommey <mh@glandium.org>
Date
Aug 20, 2021, 08:44 UTC
Message-ID
<20210820084413.1503711-1-mh@glandium.org>
Signed-off-by: Mike Hommey <mh@glandium.org>
---
 credential.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/credential.c b/credential.c
index 3c05c7c669..000ac7a8d4 100644
--- a/credential.c
+++ b/credential.c
@@ -128,6 +128,7 @@ static void credential_apply_config(struct credential *c)
 	normalized_url = url_normalize(url.buf, &config.url);
 
 	git_config(urlmatch_config_entry, &config);
+	string_list_clear(&config.vars, 1);
 	free(normalized_url);
 	strbuf_release(&url);
 
-- 
2.33.0
Next: Derrick Stolee
Message 1 of 4 in “Fix leak in credential_apply_config”
  1. Fix leak in credential_apply_configMike Hommey, Aug 20, 2021
  2. Derrick StoleeAug 20, 2021
  3. Jeff KingAug 20, 2021
  4. Jeff KingAug 20, 2021

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.