[PATCH 0/2] diff_free(): free a bit more, fix leaks
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Feb 16, 2022, 10:56 UTC
- Message-ID
- <cover-0.2-00000000000-20220216T105250Z-avarab@gmail.com>
A short and simple two-part series to fix some leaks in after diff_flush() and friends are called by making in diff_free() more useful.
This series along with other small leak fixes I have outstanding on-list now is the last step I have before the big one of submitting a series to fix the "big one" across the test suite: the common leaks in the revisions API.
Ævar Arnfjörð Bjarmason (2): diff.[ch]: have diff_free() call clear_pathspec(opts.pathspec) diff.[ch]: have diff_free() free options->parseopts
add-interactive.c | 6 +++--- blame.c | 3 --- builtin/reset.c | 1 - diff.c | 2 ++ notes-merge.c | 2 -- 5 files changed, 5 insertions(+), 9 deletions(-)
-- 2.35.1.1028.g2d2d4be19de