diff options
| author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-09-01 01:14:11 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-09-02 09:18:12 -0700 |
| commit | 4b9d12460d18d02bf6f12cc3c96340e53acf03e3 (patch) | |
| tree | fb1edeb7ba896c0a5ccd4aab0786a9803d8eeef3 /builtin/mailsplit.c | |
| parent | 8fb201d4da0e9244f44dabdb1a5f5ea2809b2270 (diff) | |
| download | git-4b9d12460d18d02bf6f12cc3c96340e53acf03e3.tar.gz | |
submodule--helper: "struct pathspec" memory leak in module_update()
The module_update() function calls module_list_compute() twice, which
in turn will reset the "struct pathspec" passed to it. Let's instead
track two of them, and clear them both.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Reviewed-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/mailsplit.c')
0 files changed, 0 insertions, 0 deletions
