From: Li Chen Date: Wed, 22 Oct 2025 05:39:32 GMT Subject: [PATCH v5 12/29] rebase: drop redundant strbuf_release call Message-ID: <20251022053951.602605-13-me@linux.beauty> In-Reply-To: <20251022053951.602605-1-me@linux.beauty> 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 --- 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