[PATCH 0/6] leaks: miscellaneous small leak fixes
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Oct 21, 2021, 15:57 UTC
- Message-ID
- <cover-0.6-00000000000-20211021T155529Z-avarab@gmail.com>
A few small miscellaneous memory leak fixes. I'm currently waiting on the other in-flight leak fixes I've got to mark more tests as passing under SANITIZE=leak, these fixes don't make any tests pass by themselves, but in combination with later fixes I've got planned will make some tests scripts pass completely.
Ævar Arnfjörð Bjarmason (6): grep: prefer "struct grep_opt" over its "void *" grep: use object_array_clear() in cmd_grep() clone: fix a memory leak of the "git_dir" variable submodule--helper: fix small memory leaks reflog: free() ref given to us by dwim_log() repack: stop leaking a "struct child_process"
builtin/clone.c | 4 +++- builtin/grep.c | 5 +++-- builtin/reflog.c | 1 + builtin/repack.c | 4 +++- builtin/submodule--helper.c | 2 ++ 5 files changed, 12 insertions(+), 4 deletions(-)
-- 2.33.1.1494.g88b39a443e1