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

1 messages from 2012-05-04 to 2012-05-04. Participants: Christian Couder.
Thread: https://gitlist.dev/t/30424

## Christian Couder, 2012-05-04 19:40

Subject: [PATCH 2/2] sequencer: release a strbuf used in save_head()
Message-ID: <20120504194035.25080.21240.chriscool@tuxfamily.org>
URL: https://gitlist.dev/e/20120504194035.25080.21240.chriscool%40tuxfamily.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

```
