diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-09-26 13:46:08 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-09-27 08:25:34 -0700 |
| commit | 2e492f2047748cf70350d503214ef89f1110ee82 (patch) | |
| tree | 88f9c78428ceea8acde6798128f3b52ac96f0759 /builtin/submodule--helper.c | |
| parent | 3aef7a05adb2868118181eb5605fffa65a9af2c8 (diff) | |
| download | git-2e492f2047748cf70350d503214ef89f1110ee82.tar.gz | |
submodule: fix leaking update strategy
We're not freeing the submodule update strategy command. Provide a
helper function that does this for us and call it in
`update_data_release()`.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/submodule--helper.c')
| -rw-r--r-- | builtin/submodule--helper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index bf8f9a4012..ed05dc5134 100644 --- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@ -2021,6 +2021,7 @@ struct update_data { static void update_data_release(struct update_data *ud) { free(ud->displaypath); + submodule_update_strategy_release(&ud->update_strategy); module_list_release(&ud->list); } |
