[PATCH 2/7] sequencer: release a strbuf used in save_head()
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 762c527..ad1bbea 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -741,6 +741,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.2.555.g6528037