]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sequencer.c
Merge branch 'ab/various-leak-fixes'
[thirdparty/git.git] / sequencer.c
index 9827e1adcbf0de181b7e3eea9a411d60effc2124..dbd56121e24f8a6adaad5d2634b64e320dfeeb78 100644 (file)
@@ -2897,6 +2897,7 @@ static void read_strategy_opts(struct replay_opts *opts, struct strbuf *buf)
        strbuf_reset(buf);
        if (!read_oneliner(buf, rebase_path_strategy(), 0))
                return;
+       free(opts->strategy);
        opts->strategy = strbuf_detach(buf, NULL);
        if (!read_oneliner(buf, rebase_path_strategy_opts(), 0))
                return;