[PATCH v4 7/8] builtin/rebase.c: free() "options.strategy_opts"
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Feb 6, 2023, 19:08 UTC
- Message-ID
- <patch-v4-7.8-07ab875c3e2-20230206T190346Z-avarab@gmail.com>
- In-Reply-To
- <cover-v4-0.8-00000000000-20230206T190346Z-avarab@gmail.com>
When the "strategy_opts" member was added in ba1905a5fef (builtin rebase: add support for custom merge strategies, 2018-09-04) the corresponding free() for it at the end of cmd_rebase() wasn't added, let's do so.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> --- builtin/rebase.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/builtin/rebase.c b/builtin/rebase.c index 41e96f0eb5a..6635f10d529 100644 --- a/builtin/rebase.c +++ b/builtin/rebase.c @@ -1850,6 +1850,7 @@ int cmd_rebase(int argc, const char **argv, const char *prefix) free(options.gpg_sign_opt); string_list_clear(&options.exec, 0); free(options.strategy); + free(options.strategy_opts); strbuf_release(&options.git_format_patch_opt); free(squash_onto_name); free(keep_base_onto_name);
-- 2.39.1.1425.ge02fe682bd8