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

[PATCH 2/2] sequencer: release a strbuf used in save_head()

From
Christian Couder <chriscool@tuxfamily.org>
Date
May 4, 2012, 19:40 UTC
Message-ID
<20120504194035.25080.21240.chriscool@tuxfamily.org>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 sequencer.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/sequencer.c b/sequencer.c
index aa4c1a4..af8e7db 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -733,6 +733,7 @@ static void save_head(const char *head)
 		die_errno(_("Could not write to %s"), head_file);
 	if (commit_lock_file(&head_lock) < 0)
 		die(_("Error wrapping up %s."), head_file);
+	strbuf_release(&buf);
 }
 
 static int reset_for_rollback(const unsigned char *sha1)
-- 
1.7.10.579.g68891.dirty
Message 1 of 1 in “sequencer: release a strbuf used in save_head()”
  1. 2/2 sequencer: release a strbuf used in save_head()Christian Couder, May 4, 2012

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.