aboutsummaryrefslogtreecommitdiffstats
path: root/commit.h
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2023-02-07 00:07:46 +0100
committerJunio C Hamano <gitster@pobox.com>2023-02-06 15:34:38 -0800
commit9d01cfed6915b1e99c266fd578e39c7aba7767dc (patch)
treeeee2c67e7a2cba12e0f9de22311ceef511097c4f /commit.h
parenthttp-backend.c: fix cmd_main() memory leak, refactor reg{exec,free}() (diff)
downloadgit-9d01cfed6915b1e99c266fd578e39c7aba7767dc.tar.gz
git-9d01cfed6915b1e99c266fd578e39c7aba7767dc.zip
commit-graph: fix a parse_options_concat() leak
When the parse_options_concat() was added to this file in 84e4484f128 (commit-graph: use parse_options_concat(), 2021-08-23) we wouldn't free() it if we returned early in these cases. Since "result" is 0 by default we can "goto cleanup" in both cases, and only need to set "result" if write_commit_graph_reachable() fails. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions