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

[PATCH] Fix memory leak in git_connect with CONNECT_DIAG_URL

From
Mike Hommey <mh@glandium.org>
Date
Apr 28, 2016, 09:19 UTC
Message-ID
<1461835155-15485-1-git-send-email-mh@glandium.org>
Signed-off-by: Mike Hommey <mh@glandium.org>
---
 connect.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/connect.c b/connect.c
index c53f3f1..dccf673 100644
--- a/connect.c
+++ b/connect.c
@@ -755,6 +755,7 @@ struct child_process *git_connect(int fd[2], const char *url,
 				free(hostandport);
 				free(path);
 				free(conn);
+				strbuf_release(&cmd);
 				return NULL;
 			}
 
-- 
2.8.1.5.g18c8a48
Message 1 of 1 in “Fix memory leak in git_connect with CONNECT_DIAG_URL”
  1. Fix memory leak in git_connect with CONNECT_DIAG_URLMike Hommey, Apr 28, 2016

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.