Subject: [PATCH v5 12/29] rebase: drop redundant strbuf_release call

From: Li Chen <[email-masked]>
Date: Wed, 22 Oct 2025 13:39:32 +0800

Removed the redundant strbuf_release() call in
read_basic_state() so the buffer is released once
even if strbuf_read_file() fails.

Signed-off-by: Li Chen <[email-masked]>
---
 builtin/rebase.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/builtin/rebase.c b/builtin/rebase.c
index 89ecb84a31..a950005dfc 100644
--- a/builtin/rebase.c
+++ b/builtin/rebase.c
@@ -524,7 +524,6 @@ static int read_basic_state(struct rebase_options *opts)
 
 			p = nl + 1;
 		}
-		strbuf_release(&buf);
 	}
 	strbuf_release(&buf);
 
-- 
2.51.0