From: Christian Couder Date: Mon, 21 May 2012 14:56:04 GMT Subject: [PATCH 2/7] sequencer: release a strbuf used in save_head() Message-ID: <20120521145610.1911.61154.chriscool@tuxfamily.org> In-Reply-To: <20120521143309.1911.94302.chriscool@tuxfamily.org> Signed-off-by: Christian Couder --- 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