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
@ -95,7 +95,7 @@ static void free_one_config(struct submodule_entry *entry)
|
||||
free((void *) entry->config->branch);
|
||||
free((void *) entry->config->url);
|
||||
free((void *) entry->config->ignore);
|
||||
free((void *) entry->config->update_strategy.command);
|
||||
submodule_update_strategy_release(&entry->config->update_strategy);
|
||||
free(entry->config);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user