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
@ -41,6 +41,10 @@ struct submodule_update_strategy {
|
||||
.type = SM_UPDATE_UNSPECIFIED, \
|
||||
}
|
||||
|
||||
int parse_submodule_update_strategy(const char *value,
|
||||
struct submodule_update_strategy *dst);
|
||||
void submodule_update_strategy_release(struct submodule_update_strategy *strategy);
|
||||
|
||||
int is_gitmodules_unmerged(struct index_state *istate);
|
||||
int is_writing_gitmodules_ok(void);
|
||||
int is_staging_gitmodules_ok(struct index_state *istate);
|
||||
@ -70,8 +74,6 @@ void die_in_unpopulated_submodule(struct index_state *istate,
|
||||
void die_path_inside_submodule(struct index_state *istate,
|
||||
const struct pathspec *ps);
|
||||
enum submodule_update_type parse_submodule_update_type(const char *value);
|
||||
int parse_submodule_update_strategy(const char *value,
|
||||
struct submodule_update_strategy *dst);
|
||||
const char *submodule_update_type_to_string(enum submodule_update_type type);
|
||||
void handle_ignore_submodules_arg(struct diff_options *, const char *);
|
||||
void show_submodule_diff_summary(struct diff_options *o, const char *path,
|
||||
|
||||
Reference in New Issue
Block a user