list-objects-filter: plug combine_filter_data leak
PATCH 1/1 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 <[email protected]>
Signed-off-by René Scharfe <[email protected]>
---
Reported in https://lore.kernel.org/git/[email protected]/
list-objects-filter.c | 1 + 1 file changed, 1 insertion(+)
list-objects-filter.c +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) {
--
2.38.1