git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] sequencer: release a strbuf used in save_head()
@ 2012-05-04 19:40 Christian Couder
  0 siblings, 0 replies; only message in thread
From: Christian Couder @ 2012-05-04 19:40 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Ramkumar Ramachandra, Jonathan Nieder, Nick Bowler


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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-04 19:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-04 19:40 [PATCH 2/2] sequencer: release a strbuf used in save_head() Christian Couder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).