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

[PATCH] rev-list: free commit_list in ... handler

From
Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Date
Jul 4, 2006, 19:22 UTC
Message-ID
<20060704192220.GA9500@lsrfire.ath.cx>

Johannes noticed the missing call to free_commit_list() in the patch from Santi to add ... support to rev-parse. Turns out I forgot it too in rev-list. This patch is against the next branch (3b1d06a).

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
diff --git a/revision.c b/revision.c
index 66390c9..a7750e6 100644
--- a/revision.c
+++ b/revision.c
@@ -817,6 +817,7 @@ int setup_revisions(int argc, const char
 					exclude = get_merge_bases(a, b, 1);
 					add_pending_commit_list(revs, exclude,
 					                        flags_exclude);
+					free_commit_list(exclude);
 					a->object.flags |= flags;
 				} else
 					a->object.flags |= flags_exclude;
Next: Junio C Hamano
Message 1 of 2 in “rev-list: free commit_list in ... handler”
  1. rev-list: free commit_list in ... handlerRene Scharfe, Jul 4, 2006
  2. Junio C HamanoJul 4, 2006

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.