diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-09-26 13:46:21 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-09-27 08:25:35 -0700 |
commit | 5bf922a4e914f15d899d38218ad0591933025ed4 (patch) | |
tree | b550eb0e0393450a0295b679d4f4e71111c8bab3 /builtin/commit.c | |
parent | f1652c04b5da814a6bd15873a0a0323bf58badcf (diff) |
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 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions