aboutsummaryrefslogtreecommitdiffstats
path: root/diff.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-26 13:46:21 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-27 08:25:35 -0700
commit5bf922a4e914f15d899d38218ad0591933025ed4 (patch)
treeb550eb0e0393450a0295b679d4f4e71111c8bab3 /diff.c
parentt/helper: fix leaking subrepo in nested submodule config helper (diff)
downloadgit-5bf922a4e914f15d899d38218ad0591933025ed4.tar.gz
git-5bf922a4e914f15d899d38218ad0591933025ed4.zip
builtin/submodule--helper: fix leaking remote ref on errors
When `update_submodule()` fails we return with `die_message()`, which only causes us to print the same message as `die()` would without actually causing the process to die. We don't free memory in that case and thus leak memory. Fix the leak by freeing the remote ref. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions