aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-07-01 12:42:56 +0200
committerJunio C Hamano <gitster@pobox.com>2022-07-01 11:43:43 -0700
commite72e12cc02d80e4ebf01e0a3d170617211ae7c70 (patch)
treefd3159ad8ebe26def9f0a2d564b239024089a1f4 /commit-graph.c
parentmerge-file: refactor for subsequent memory leak fix (diff)
downloadgit-e72e12cc02d80e4ebf01e0a3d170617211ae7c70.tar.gz
git-e72e12cc02d80e4ebf01e0a3d170617211ae7c70.zip
merge-file: fix memory leaks on error path
Fix a memory leak in "merge-file", we need to loop over the "mmfs" array and free() what we've got so far when we error out. As a result we can mark a test as passing with SANITIZE=leak using "TEST_PASSES_SANITIZE_LEAK=true". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions