list-objects-filter: plug combine_filter_data leak

filter_combine__init() allocates a struct combine_filter_data object and
assigns it to the filter_data member of struct filter_options.  Release
it in the complementing filter_combine__free().

Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
René Scharfe 2022-11-20 12:00:52 +01:00 коммит произвёл Junio C Hamano
Родитель e7e5c6f715
Коммит 7c2dc122f9
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -709,6 +709,7 @@ static void filter_combine__free(void *filter_data)
BUG("expected oidset to be cleared already");
}
free(d->sub);
free(d);
}
static void add_all(struct oidset *dest, struct oidset *src) {