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

[PATCH 1/2] transport: Free leaking head in transport_print_push_status

From
Stefan Beller <stefanbeller@gmail.com>
Date
Oct 21, 2014, 01:50 UTC
Message-ID
<1413856245-5443-1-git-send-email-stefanbeller@gmail.com>
From: Stefan Beller <sbeller@google.com>
Found by scan.coverity.com (ID: 1248110)
Signed-off-by: Stefan Beller <sbeller@google.com>
---
 transport.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/transport.c b/transport.c
index 055d2a2..fbab6ee 100644
--- a/transport.c
+++ b/transport.c
@@ -774,6 +774,7 @@ void transport_print_push_status(const char *dest, struct ref *refs,
 			*reject_reasons |= REJECT_NEEDS_FORCE;
 		}
 	}
+	free(head);
 }
 
 void transport_verify_remote_names(int nr_heads, const char **heads)
-- 
2.1.2.332.g8071e93
Next: Stefan Beller
Message 1 of 4 in “transport: Free leaking head in transport_print_push_status”
  1. 1/2 transport: Free leaking head in transport_print_push_statusStefan Beller, Oct 21, 2014
  2. 2/2 .mailmap: Add Stefan Bellers corporate mail addressStefan Beller, Oct 21, 2014
  3. Junio C HamanoOct 21, 2014
  4. Junio C HamanoOct 22, 2014

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.