mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
submodule: fix leaking submodule entry list
The submodule entry list returned by `submodules_of_tree()` is never completely free'd by its only caller. Introduce a new function that free's the list for us and call it. While at it, also fix the leaking `branch_point` string. 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
666643fa89
commit
5cca114973
@@ -136,4 +136,7 @@ struct submodule_entry_list {
|
||||
void submodules_of_tree(struct repository *r,
|
||||
const struct object_id *treeish_name,
|
||||
struct submodule_entry_list *ret);
|
||||
|
||||
void submodule_entry_list_release(struct submodule_entry_list *list);
|
||||
|
||||
#endif /* SUBMODULE_CONFIG_H */
|
||||
|
||||
Reference in New Issue
Block a user