summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2023-11-06 11:46:01 +0100
committerJunio C Hamano <gitster@pobox.com>2023-11-07 08:51:41 +0900
commit4ce14e13250e824b7d410d9bff88061525346a15 (patch)
treec578e7692c54d36998f4a02e1e4e7a9fd2cfec42 /builtin/commit.c
parent568cc818cc26955eb0b94084d3068caabab1edd7 (diff)
setup: refactor `upgrade_repository_format()` to have common exit
The `upgrade_repository_format()` function has multiple exit paths, which means that there is no common cleanup of acquired resources. While this isn't much of a problem right now, we're about to fix a memory leak that would require us to free the resource in every one of those exit paths. Refactor the code to have a common exit path so that the subsequent memory leak fix becomes easier to implement. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions