mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
submodule: fix leaking fetch task data
The `submodule_parallel_fetch` structure contains various data structures that we use to set up parallel fetches of submodules. We do not free some of its data though, causing memory leaks. Plug those. 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
ac2e7d545e
commit
3eefd348e5
@@ -1883,6 +1883,8 @@ int fetch_submodules(struct repository *r,
|
||||
out:
|
||||
free_submodules_data(&spf.changed_submodule_names);
|
||||
string_list_clear(&spf.seen_submodule_names, 0);
|
||||
strbuf_release(&spf.submodules_with_errors);
|
||||
free(spf.oid_fetch_tasks);
|
||||
return spf.result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user