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

Li Chen
2025-10-22T05:42:21Z

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 <chenl311@chinatelecom.cn>
---
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