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>
This commit is contained in:

committed by
Junio C Hamano

parent
3aef7a05ad
commit
2e492f2047
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user