[PATCH v5 12/29] rebase: drop redundant strbuf_release call
From: Li Chen <hidden>
Date: 2025-10-22 05:42:21
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Li Chen <hidden>
Date: 2025-10-22 05:42:21
Subsystem:
the rest · Maintainer:
Linus Torvalds
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 <redacted> --- 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